System Design
6. Distributed Systems FundamentalsAnimated
PACELC Theorem
If Partitioned choose A or C; Else choose Latency or Consistency.
The idea
Extends CAP: even without partitions, stronger consistency costs latency.
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
- 1If partition: availability or consistency
- 2Else: latency or consistency
- 3Classify your database
- 4Match to requirements
Where it is used
Comparing databases.
Watch out for
Systems can be tuned per request.