Event sourcing: the life of an order

Store what happened to an order as events, and rebuild its current state by replaying them.

Level Advanced

What you will see

  1. A status that forgets
  2. Events are facts, in the past tense
  3. Decide what happens, evolve the state
  4. An append-only, versioned store
  5. Rebuilding an order from its stream
  6. When the current state is enough

Before / after

Base: naive-crud-tsView the diff

Exercises