Mission
Interactive Simulation
Before we explain anything — play. Push it until it breaks, then fix it.
Quorums (N = 3)
R + W > N means every read set overlaps every write set — that's what "strong" buys you.
Break it
What just happened?
During the partition you had to choose: remain Available (serve possibly-stale data) or remain Consistent (reject some requests). You can't have both while partitioned.
The concept
CAP: during a network Partition, a distributed system must choose between Consistency (every read sees the latest write) and Availability (every request gets a response). Since partitions happen, real systems pick CP or AP behavior. Eventual consistency (AP) means replicas converge over time.
Trade-offs
Nothing is free. Here's what this solution costs you.
Mini quiz
During a network partition, CAP forces a choice between…
Interview me
The app becomes your interviewer. One question, in your own words.
Boss challenge
Payments ledger under partition
You run a bank's balance store across two regions. The link between them just failed.
Goal: Serve no stale balances and accept no conflicting writes, while still answering 60%+ of requests.
Use the simulator above with no hints. These checks update live as you play.
Interview question
“Explain CAP, give an example of a CP and an AP system, and define eventual consistency and quorums.”