The post clarifies the distinction between the CQRS pattern and the MediatR library, which are often misconceived as inherently linked. CQRS is an architectural principle that separates read and write operations, while MediatR implements the mediator pattern to reduce dependencies between components. The post discusses the benefits and challenges of using these tools together and provides examples of implementing CQRS with and without MediatR.
Table of contents
Understanding CQRS in Its Pure FormMediatR: A Different Tool for Different ProblemsWhy They Often Appear TogetherCQRS Without MediatRTakeawaySort: