← 👑 Distributed Systems

👑 The Bully Algorithm: Electing a Leader in a Distributed System by Highest ID

Leader:
Messages: 0
Drag — rotate · Scroll — zoom

👑 The Bully Algorithm: Electing a Leader in a Distributed System by Highest ID

This simulator visualizes how election and coordinator messages ripple through a set of numbered processes after a leader failure, showing exactly which nodes get bullied aside and which one ultimately wins.

🔬 What It Demonstrates

This simulator visualizes how election and coordinator messages ripple through a set of numbered processes after a leader failure, showing exactly which nodes get bullied aside and which one ultimately wins.

🎮 How to Use

Pick a process to fail or simulate a network partition, then watch the election messages cascade upward by ID and the coordinator announcement broadcast back down to the survivors.

💡 Did You Know?

In the worst case, when the lowest-ID process detects the failure, the Bully Algorithm can generate a number of messages that grows quadratically with the number of processes in the system.