Event sourcing
Your database says the account balance is £40. A customer asks how it got there, and support asks what it was last Tuesday. A normal table can't answer either question. What if you stored every change instead of the result?
In this lesson you'll learn to
- Explain event sourcing, where events are the source of truth and state is derived from them.
- Use replay for time travel, debugging and building new projections.
- Keep reads fast with snapshots and projections.
- Weigh the hard parts, including schema changes, deleting personal data and complexity.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.