25/03/2026
🚀 1 Concept in 60 Seconds: CQRS
Most systems get slower as they get bigger because the parts that change data and the parts that read data are fighting with each other.
CQRS, which is Command Query Responsibility Segregation solves this problem by keeping them separate.
The commands are in charge of changing data like when you create something update something or delete something.
The queries are in charge of reading data, like when you need to get some information.
This way the parts that change data can focus on making sure everything is correct and consistent.
The parts that read data can be made to work fast.
In life systems usually have a lot more people reading data than changing it.
CQRS helps because it lets you make the reading and writing parts work independently so you can make one part bigger without affecting the part.
You should use CQRS when your system has to handle a lot of people reading data and you need it to work fast and the rules of your business are complicated.
Do not use CQRS for applications that just create, read, update and delete data.
👉 So it is an idea to separate the parts of your system that change data from the parts that read data.
That is how you can make your system work well even when it gets really big.