Glossary

Event Sourcing

Event Sourcing is an approach to state storage where, instead of current values, a sequence of events that led to that state is stored. The current state is derived by "replaying" all events from the beginning.

Example

Instead of storing balance = 1500, store events: AccountCreated(0), MoneyDeposited(2000), MoneyWithdrawn(500). Balance = 0 + 2000 − 500 = 1500.

Advantages

Challenges