How amitshah261/chandy-lamport-snapshot-algorithm works
This is a small distributed-systems demonstration of the Chandy–Lamport snapshot algorithm. Each runtime instance transfers funds among three configured processes; process 1 periodically initiates snapshots, and the program reports transfers and snapshot state to the user. The excerpts show the network, marker handling, and process state, but do not show Channel.java being used. The graph therefore leaves that class unconnected and omits uncertain internal steps.
Main entry points: ChandyLamport.java Snapshot runtime · Process.java Process state · ServerProperties.java Server configuration
Components 5
Runtime
- Snapshot runtime
ChandyLamport.java
State
- Process state
Process.java - Channel state class
Channel.java
Configuration
- Server configuration
ServerProperties.java
Other components
- User
Connections 5
- Snapshot runtime → Process state: reads and updates
ChandyLamport.java - Snapshot runtime → Server configuration: loads configuration
ChandyLamport.java - Process state → Server configuration: loads configuration
Process.java - Snapshot runtime → Snapshot runtime: sends transfers and markers
ChandyLamport.java - Snapshot runtime → User: displays results
README.md