Technology architecture - Concept
Event sourcing
Recording each change or event so the history of a system can be reconstructed
What's it for?
Keeps the full history of what happened so a system's current state can be rebuilt or explained later.
For example…
A bank account stores deposits, withdrawals and transfers as an event history, then calculates the current balance from that sequence
With event sourcing, a customer's address history is preserved as each change rather than overwriting the old value with only the latest one.