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

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. 1List the guarantees you need
  2. 2Choose the weakest that works
  3. 3Configure the datastore
  4. 4Test the anomalies

Where it is used

Database selection.

Watch out for

Stronger models cost latency.

Related