CQRS: the customer order history
Change orders through commands, and answer reads from read models that projections keep up to date.
Level Advanced
What you will see
- One model for writing and reading
- Commands say what to change
- A read model shaped for its screen
- The projection keeps the read model up to date
- When is the read model up to date?
- When one model is enough
Before / after
Base: naive-crud-tsView the diff