How do a thousand computers agree on anything? Watch leader elections, gossip spread information like a virus, and see why CAP means you can have at most two of three guarantees.
Open any simulation — runs instantly in your browser
Consensus, leader election, fault tolerance, and network partitions — live
Distributed systems simulations model the coordination challenges that arise when multiple independent computers must agree on shared state. Raft consensus-algorithm simulations show leader election, log replication, and what happens when nodes lose connectivity: you can crash nodes and partition the network at will and watch the remaining quorum continue or stall. Lamport clock simulations attach logical timestamps to messages and demonstrate happens-before ordering in asynchronous systems.
Byzantine fault-tolerance simulations introduce faulty or malicious nodes and show how PBFT and proof-of-work achieve consensus despite a fraction of dishonest participants. Distributed hash-table visualisers animate consistent-hashing ring membership, virtual node assignment, and rebalancing as nodes join and leave. These are the exact algorithms running in Apache Kafka, Kubernetes, etcd, and blockchain consensus layers.
Each simulation in this category is built with accuracy and interactivity in mind. The underlying mathematical models are the same ones used in academic research and professional engineering — just made accessible through a web browser. Changing parameters in real time and observing the results is one of the most effective ways to build intuition for complex scientific and engineering concepts.
Topics and algorithms you'll explore in this category
Common questions about this simulation category