0% completed
Command Query Responsibility Segregation (CQRS) is a design pattern in software architecture that helps solve the kind of problem we just discussed. To understand it better, let's break down the term:
Now, how does CQRS work in simple terms?
Here is how CQRS looks like with a single Read/Write model with single database.
State Change: The separation of concerns also distinguishes between methods that change the state and those that don't. This implies that each method of an object falls into one of these categories, but not both:
Why is this Useful?
In essence, CQRS acknowledges that the needs for reading and writing data are different and allows you to treat them separately. This leads to more efficient, maintainable, and scalable systems.
.....
.....
.....