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.
Implementing the viewer service - Azure Tutorial
From the course: Advanced Azure Microservices with .NET for Developers
Implementing the viewer service
- [Instructor] We've gone through the command part of the CQRS pattern already. Now it's time to implement the query part. Let's see how we can do that. In this video, we'll add a new RescueQuery microservice. The reason why this is a separate API is because after the event storming session with Wisdom Pet Medicine's domain experts, we detected that external systems will heavily use this API. Therefore, we could scale this microservice independently. We could also modify it independently if that were necessary. we'll use Dapper to query the database and project a different view model freely. Remember that these kind of queries most of the time are meant to be used in user interfaces, reports and so on. For this reason, it's nice to have different models for both commands and queries. Okay let's move on. So here in Visual Studio, I'm going to create a new project inside the Rescue folder, and let's use this ASP.NET Core…