Skip to content
StackDecode
System Design
6. Distributed Systems FundamentalsAnimated

Distributed Snapshots

Capturing a consistent global state.

The idea

The Chandy-Lamport algorithm records each node's state and messages in flight using markers.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ProducerEvent brokerBillingEmailAnalytics
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A service publishes an event: "OrderPlaced".

step:
1/4
at:
Producer
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Initiator records its state and sends markers
  2. 2Receivers record and forward markers
  3. 3Record in-flight messages
  4. 4Combine the pieces

Where it is used

Checkpointing in stream processing.

Watch out for

Needs FIFO channels.

Related