Distributed Systems · Data across services
Event sourcing
Instead of overwriting a row, event sourcing appends what happened (AccountOpened, MoneyDeposited) and rebuilds state by replaying it. You gain full history and pay in schemas, replays and queries.
- Time25 min
- LevelSenior
- Experiments1 live
- Check6 questions






Command WithdrawMoney ₹300 arrives for account 42.
Snapshot load the balance of ₹1,100 saved at version 500.
Rule ₹900 covers ₹300, so the withdrawal is allowed.
Projections the statement and balance views apply event 508 a moment later.
Screens and APIs send commands; read projections.
Projections query tables built from events; may lag; can be thrown away.