Skip to content
StackDecode
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.

Node 1Node 2Node 3Node 4Node 5
  • 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

  1. 1If partition: availability or consistency
  2. 2Else: latency or consistency
  3. 3Classify your database
  4. 4Match to requirements

Where it is used

Comparing databases.

Watch out for

Systems can be tuned per request.

Related