CQRS
A pattern that separates commands (changing data) from queries (reading data), with different models for each side.
Example
A store writes orders to 1 database and shows them from 10 read replicas with prebuilt views.
Test yourself: CQRS
CQRS
What does CQRS separate?
2 sides: if there are 100 reads per write, each side is optimized separately.
CQRS
With event sourcing, the event store is CQRS's ___ model.
Each command appends 1 event to the store; views are read from elsewhere.
CQRS
Your app has 1,000 reads per write. Which CQRS advantage do you use?
At 1,000 to 1, you add 10 read replicas and keep 1 single write one.
0/3
â–¶ Play