The CAP Theorem
"When the network splits, a distributed store must choose between staying consistent and staying available."
"When the network splits, a distributed store must choose between staying consistent and staying available."
A distributed data store can provide at most two of three guarantees at once: consistency, that every read sees the latest write; availability, that every request gets a non-error response; and partition tolerance, that the system keeps working despite dropped messages between nodes. Because network partitions are a fact of distributed life, the real choice, when one occurs, is between consistency and availability.
Rated Empirical: grounded in studies or measurable evidence. The other 608.
When no partition exists, a system can deliver both consistency and availability. When a network partition cuts the system in two, it faces a forced choice: either refuse operations on the unreachable side, sacrificing availability to keep data consistent, or keep serving on both sides, sacrificing consistency to stay available. Partition tolerance is not really optional for a genuinely distributed system, so the design decision is what to do during a partition, not whether to tolerate one.
Abadi's extension: if there is a partition, trade availability against consistency; else, even in normal operation, trade latency against consistency (capturing the latency dimension CAP ignores).
The relaxed model typical of availability-first systems, where replicas are allowed to diverge during a partition and converge once it heals.
It is the organising principle of distributed database design, forcing architects to confront an unavoidable trade-off and to decide, in advance, how their system should behave when the network fails. It named the tension at the heart of every replicated data store and shaped a generation of NoSQL systems.
The formal impossibility result is a proven theorem, but the popular 'pick two of three' slogan is widely considered misleading: including by Brewer himself in his 2012 retrospective. The consistency-versus-availability choice only arises during a partition; when the network is healthy, a system can have both. Partition tolerance is effectively mandatory, so giving it up is not a real option for a distributed system. Availability is a spectrum and consistency comes in degrees, and the choice can vary by subsystem or even by operation. CAP also says nothing about latency, which the PACELC extension addresses. Its consistency, meaning linearizability, is also not the consistency of database ACID.
It does not mean you permanently pick two of three properties and forever forgo the third: the trade-off bites only during a partition, and in normal operation you can have both consistency and availability. And 'CA' is not a meaningful choice for a real distributed system, since partitions cannot be wished away.
Yes, as far as the evidence goes. The CAP Theorem is rated Empirical here: it rests on studies or measurements rather than on a saying.
Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.
The best-known laws are the least likely to rest on measurement.
Conjectured by Eric Brewer in a 2000 keynote and proved by Seth Gilbert and Nancy Lynch in 'Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services' (ACM SIGACT News, 2002); Brewer clarified the oversimplified reading in a 2012 retrospective.
9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.
Everything above traces to en.wikipedia.org and ieeexplore.ieee.org, two sources in all, one of them the original publication rather than an account of it. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.