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

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