Architecture

Event sourcing

Storing every action taken on the data, in order, instead of only the current state. The state is computed by replaying the events.

Example

An account stores «deposit $100» and «withdrawal $30»; the $70 balance is computed from those 2 events.

Test yourself: Event sourcing

Event sourcing

What does a system with event sourcing store?

Lessons that use it

More architecture terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.