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.
- 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
- 1Initiator records its state and sends markers
- 2Receivers record and forward markers
- 3Record in-flight messages
- 4Combine the pieces
Where it is used
Checkpointing in stream processing.
Watch out for
Needs FIFO channels.