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

  1. One model for writing and reading
  2. Commands say what to change
  3. A read model shaped for its screen
  4. The projection keeps the read model up to date
  5. When is the read model up to date?
  6. When one model is enough

Before / after

Base: naive-crud-tsView the diff

Exercises