O'Reilly logo

Hands-On Design Patterns with C# and .NET Core by Jeffrey Chilberto, Gaurav Aroraa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the CQRS pattern

CQRS simply works on the separation between queries (to read) and commands (to modify). Command-Query Separation (CQS) is an approach to Object-oriented Design (OOD).

CQRS was introduced for the first time by Bertrand Meyer (https://en.wikipedia.org/wiki/Bertrand_Meyer). He mentioned this term in his book, Object-Oriented Software Construction, during the late 1980s: https://www.amazon.in/Object-Oriented-Software-Construction-Prentice-hall-International/dp/0136291554.

CQRS does fit well with some scenarios and has some useful factors to it:

  • Model separation: In modeling terms, we are able to have multiple representations for our data model. The clear separation allows for choosing different frameworks or techniques ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required