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
- A status that forgets
- Events are facts, in the past tense
- Decide what happens, evolve the state
- An append-only, versioned store
- Rebuilding an order from its stream
- When the current state is enough
Before / after
Base: naive-crud-tsView the diff