Patterns 0/12

Lesson 12 of 12

Event sourcing

Store the history of changes as events and derive current state from them, with snapshots.

979 words · 5 min read Ultra Premium Useful background: Data modeling, Delivery semantics

In this lesson

  1. History as authority
  2. Fold a ledger
  3. Replay and snapshot
  4. Snapshots and appends
  5. What stays true
  6. Costs and tradeoffs
  7. Common mistakes
  8. Related topics and practice

Ultra Premium

Unlock this lesson

Ultra Premium opens the 12 premium lessons in Patterns, along with the rest of WhiteBox's premium lessons and problems.

Not ready yet? Read the free lesson: Backpressure