A distributed system demonstrating leader election using the Bully Algorithm.
- Each node has a unique ID (1, 2, 3)
- When election starts, nodes "bully" others with lower IDs
- Highest ID node becomes the leader
- Leader manages the shared counter
- Node 1: http://localhost:8001
- Node 2: http://localhost:8002
- Node 3: http://localhost:8003
GET /ping- Health checkGET /status- Node status (ID, leader, state)POST /election- Trigger electionPOST /victory- Announce new leader
Pull the image
docker pull omardawoud/democratic-quorum:latestRun the container
docker run -p 8001:8001 omardawoud/democratic-quorum