Loading lesson…
Level 1 · Apprentice0 XP
Store what happened, not just the current state, and derive views from the events.
Step 1 / 6
ProblemA customer disputes their account balance. The database holds only the current number. Nobody can say which operations produced it.
← → step
Before this: Event-driven architecture
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Implement an event-sourced bank account with an in-memory event store, optimistic concurrency (expectedVersion), and a projection listing accounts by balance. Replay to rebuild the projection.