Coder Social home page Coder Social logo

implementing-an-event-sourcing-strategy-on-azure's Introduction

Implementing an Event Sourcing strategy on Azure

In recent years the Event Sourcing pattern has become increasingly popular. By storing a history of events it enables us to decouple the storage of data from the implementation of the logic around it. And we can rebuild the state of our data to any point in time, giving us a wide range of opportunities around auditing and compensation.

In this demo-heavy session you will learn how we can use Azure Event Hubs to process and store these events to build our own event store based on Cosmos DB. Moreover, we will also dive into options around connecting to other Azure services and even Kafka applications to easily implement this popular pattern in our own solutions.

Video: https://learn.microsoft.com/en-us/events/azure-cosmos-db-azure-cosmos-db-conf/implementing-an-event-sourcing-strategy-on-azure

Orders

In the demo we will show how we can use order events to fill our data store. Below is an example of such an event.

Order event example

{
    "id": "6a0597ae-c137-45a8-932b-45994341dce6",
    "eventTime": "2021-03-29T17:07:15.8743603+02:00",
    "orderNumber": "1b8211e0-f1b6-4261-8487-58a065ab1613",
    "orderStatus": "REQUESTED",
    "hubId": 258,
    "customer": {
        "customerId": 321,
        "deliveryAddress": {
            "name": "John Smith",
            "street": "Pariser Platz 1",
            "city": "Berlin",
            "zipCode": "10117"
        }
    },
    "delivery": {
        "plannedDeliveryTime": "13-04-2021 19:00",
        "pickingStartTime": "13-04-2021 17:00",
        "pickingEndTime": "13-04-2021 17:05",
    },
    "articles": [
        {
            "article": "Coca-Cola Cherry",
            "quantity": 5,
            "price": 2.95
        },
        {
            "article": "Jim Bean",
            "quantity": 1,
            "price": 9.95
        }
    ]
}

implementing-an-event-sourcing-strategy-on-azure's People

Contributors

eldertgrootenboermotion10 avatar eldertgrootenboer avatar macel94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.