HomeDistributed & Parallel ComputingCAP Theorem Cluster Simulator

CAP Theorem Cluster Simulator

Interactive CAP theorem simulator: split a replicated node cluster with a network partition and switch between CP (consistent) and AP (available) strategies to see rejected writes versus diverging data in real time.

Distributed & Parallel Computing3DModerate60 FPS
distributed-systems ↗ Open standalone

Distributed databases replicate data across many nodes so that no single machine failure loses information, but a network partition forces a hard choice: stay consistent by refusing writes the rest of the cluster cannot see, or stay available by accepting them everywhere and letting the copies drift apart. This simulator makes that trade-off visible. A ring of replica nodes shares one value; triggering a partition splits it into two isolated groups with their cross-links severed, and every simulated client write then either gets rejected (CP mode, enforcing consistency) or accepted locally on both sides (AP mode, enforcing availability) — watch the diverged-node counter climb in AP mode, or the rejected-write counter climb in CP mode, and see how healing the partition reconciles the cluster back to one shared value.

⚙ Under the hood

Interactive CAP theorem simulator: split a replicated node cluster with a network partition and switch between CP (consistent) and AP (available) strategies to see rejected writes versus diverging data in real time.

Three.jsdistributed-systemscap-theoremconsistencyavailabilityconsensuscomputer-science

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)