Chapter 14: Mediator and CQRS Design Patterns

In this chapter, we explore the building blocks that we will use in the next chapter about Vertical Slice Architecture. We begin with a quick overview of Vertical Slice Architecture to give you an idea of the end goal to understand where we are heading. Then we explore the Mediator design pattern, which plays the role of the middleman between the components of our application. That leads us to the Command Query Responsibility Segregation (CQRS) pattern, which describes how to organize our logic. Finally, to piece all of that together, we explore MediatR, an open source implementation of the Mediator design pattern.

The following topics will be covered in this chapter:

  • A high-level overview of Vertical ...

Get An Atypical ASP.NET Core 5 Design Patterns Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.