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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.