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.
Challenge: Implementing event sourcing - Azure Tutorial
From the course: Advanced Azure Microservices with .NET for Developers
Challenge: Implementing event sourcing
(upbeat music) - Now it's time for a challenge. Take into account that this isn't a short challenge. The goal is for you to get real hands-on practice implementing some of the event sourcing principles. Specifically, we're going to implement code for predicting the current state of a patient aggregate to a SQL Server database. This challenge will likely take you something between 45 and 60 minutes to complete. Of course, if you'd like to skip this challenge, you can join me in the next chapter. The code in this challenge is critical because with event sourcing, the event store is not meant to be queried directly. Instead, we're going to combine the CQRS pattern and event sourcing. The current Azure Cosmos DB database is our right side of the CQRS pattern. We're going to take advantage of its change feed to automatically invoke a Cosmos DB trigger inside an Azure function. The trigger will get the written items, in…
Contents
-
-
-
-
-
(Locked)
Introduction to the Event Sourcing pattern7m 45s
-
(Locked)
Creating the event store in Azure Cosmos DB4m 37s
-
(Locked)
Creating and storing the first events6m 5s
-
(Locked)
Reading the event store through CQRS7m 26s
-
(Locked)
Challenge: Implementing event sourcing2m 25s
-
(Locked)
Solution: Implementing event sourcing9m 1s
-
(Locked)
-
-
-