CQRS
Writing an order needs strict rules and a tidy, normalised model. Reading orders needs a dozen different shapes: by customer, by day, by product, full-text search. Why force one model to do both jobs badly?
In this lesson you'll learn to
- Explain CQRS, where commands and queries use separate models.
- Design read models shaped for each query, kept up to date by events.
- Handle the lag between a write and its read models.
- Decide when CQRS is worth it, and how it differs from read replicas.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.