System Design
6. Distributed Systems FundamentalsAnimated
Consistency Models
The guarantees about what reads can return.
The idea
Linearizable, sequential, causal, read-your-writes and eventual consistency trade strength for speed.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Independent machines coordinate only by passing messages.
- step:
- 1/4
- at:
- Node 1
1/8
The green dot is a request moving through the system.
Step by step
- 1List the guarantees you need
- 2Choose the weakest that works
- 3Configure the datastore
- 4Test the anomalies
Where it is used
Database selection.
Watch out for
Stronger models cost latency.