CQRS And MediatR in ASP.NET Core - Integration and Queries

Code Maze
Code Maze
6 هزار بار بازدید - 9 ماه پیش - ►► Master Web API development
►► Master Web API development Best Practices: bit.ly/3TnqoFQ ►► Build great web apps in Blazor WebAssembly: bit.ly/437g87T ►► Support us on Patreon and get the source code: www.patreon.com/CodeMaze In this video, we are going to provide a brief introduction to the CQRS pattern, and how the .NET library MediatR helps us build software with this architecture. 0:00 Introduction 1:07 About CQRS and MediatR 4:08 MediatR Integration 11:09 Queries with MediatR FOLLOW US ON SOCIAL MEDIA! ►► www.linkedin.com/in/marinko-spasojevic/ ►► twitter.com/CodeMazeBlog ►► www.facebook.com/CodeMazeBlog VIDEO SUMMARY: In this video, we will briefly introduce the CQRS pattern and how the .NET library MediatR helps us build software with this architecture. Here, we will talk about how to integrate CQRS and MediatR with the ASP.NET project and also how to use Queries. In the next video, we will cover the rest of the topics - Commands, Behaviors, and Notifications. The MediatR library was built to facilitate two primary software architecture patterns: CQRS and the Mediator pattern. While similar, let’s spend a moment understanding the principles behind each pattern. CQRS stands for “Command Query Responsibility Segregation”. As the acronym suggests, it’s all about splitting the responsibility of commands and queries into different models. If we think about the commonly used Create-Read-Update-Delete pattern, usually we have the user interface interacting with a datastore responsible for all four operations. CQRS would instead have us split these operations into two models, one for the queries - read operations, and another for the commands - create update and delete operations. The CQRS pattern makes no formal requirements of how this separation occurs. It could be as simple as a separate class in the same application, all the way up to separate physical applications on different servers. That decision would be based on factors such as scaling requirements and infrastructure, so we won’t go into that decision path today. The key point is that to create a CQRS system, we just need to split the reads from the writes.
9 ماه پیش در تاریخ 1402/10/13 منتشر شده است.
6,017 بـار بازدید شده
... بیشتر