🗳️ Raft Consensus Simulator
Interactive 3D cluster of five nodes where triggering leader elections and network partitions shows how Raft keeps replicated logs consistent without a fixed boss.
A cluster of five simulated servers arranged in a ring elects a leader, replicates a growing log, and keeps agreeing on the same sequence of commands even as you crash nodes and cut the network.
🔬 What It Demonstrates
Leader election via randomized timeouts and majority voting, log replication through AppendEntries messages, and the quorum rule that lets a 5-node cluster survive up to two simultaneous failures without losing data.
🎮 How to Use
Click any node to crash or revive it, kill the leader outright, split the network into a 3/2 partition, propose new client writes, and tune election timeout and latency to see how they change election speed and stability.
💡 Did You Know?
Raft was designed in 2014 specifically to be more understandable than Paxos while offering the same fault-tolerance guarantees, and it now powers etcd, Consul, CockroachDB and countless other production systems.
Interactive 3D cluster of five nodes where triggering leader elections and network partitions shows how Raft keeps replicated logs consistent without a fixed boss.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install