From the course: Advanced Azure Microservices with .NET for Developers

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Introduction to the Event Sourcing pattern

Introduction to the Event Sourcing pattern - Azure Tutorial

From the course: Advanced Azure Microservices with .NET for Developers

Introduction to the Event Sourcing pattern

- [Voiceover] In this video, we'll describe Event Sourcing pattern, its principles and challenges, and also we'll highlight some of the benefits we get by adopting it in our solutions. Before I start describing the event, sourcing pattern, let's see first how it compares to the Traditional (CRUD) Approach. Let's suppose that we have modeled an aggregate by using DDD. For example, the patient aggregate in the Wisdom Pet Medicine system. We have a database with one or more tables that perceive the aggregate state in this traditional approach, the application service invokes the aggregate methods to change its state. For example, we involve the set weight method and pass a value in kilograms for the patient, say 23.5 kilograms, the method validates the input and changes the interstate of the object. After that, we commit the state to the database. At this point, the entire state was stored. We could use a no RM or not,…

Contents