Consistent Cuts and Distributed Snapshots
Capture process and channel state without stopping the whole system, and explain why messages in flight belong to the recorded result.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A cut must be closed under causal predecessors
Choose a prefix of each process’s local events. If the cut contains a receive, it must contain the corresponding send. A sent message whose receive is outside is in transit at that cut. For a transferred token, counting only local balances can appear to lose it if the transfer is recorded halfway. Including the channel state restores the chosen global invariant.
Markers separate earlier traffic on FIFO channels
In the Chandy–Lamport model, a process records its local state and sends markers on outgoing channels before sending further ordinary messages. Upon the first incoming marker a process records if it has not done so. For other incoming channels, it records ordinary messages between its local snapshot and that channel’s marker as in-flight state. FIFO delivery is part of this proof. Lamport clocks describe the causal order. Stream checkpoints extend snapshot reasoning to processing operators.[1][2]