The CAP theorem in distributed systems states that a networked data store can guarantee at most two of three properties at the same time: consistency, availability, and partition tolerance. Computer scientist Eric Brewer first set out the idea in autumn 1998 and presented it at the 2000 Symposium on Principles of Distributed Computing, before MIT researchers Seth Gilbert and Nancy Lynch published a formal proof in 2002 [1, 3, 14]. Because network links between servers can always break or drop messages, distributed cloud systems can’t give up partition tolerance in practice [10, 14]. When a network split happens, engineers must pick between returning the latest data and keeping every working node responsive [11, 14].
How Does CAP Theorem Work?
Under CAP, a system balances three traits whenever data lives on more than one machine. Consistency means every read gets the most recent write or an error, so all clients see the same value regardless of which node they hit [10, 14]. For a write to succeed on one machine, the system must copy it to every peer before confirming the change [9, 10]. In Gilbert and Lynch’s proof, that rule is atomic consistency—also called linearizability—meaning if operation B starts after operation A finishes, B must observe A’s result or a newer state [1, 5, 8].
Availability means every request sent to a working node receives a non-error response, without promising the newest version of the data [5, 11, 14]. As Gilbert and Lynch pointed out, availability tends to fail when sites are busiest [1]. CAP availability also ignores speed: a store that answers after 30 days—or two minutes—still counts as available under the formal model [5, 9].
Partition tolerance means a cluster keeps running when a broken link or delayed message cuts communication between nodes [9, 10, 14]. A single-server app either runs or crashes, yet spreading data across machines invites network splits. Even inside global corporate networks with multiple data centers, temporary partitions occur often enough that systems must plan for them [1].

Origins of Brewer’s Theorem
Ideas behind Brewer’s theorem took shape in the mid-1990s while Eric Brewer and his colleagues at UC Berkeley and Inktomi built early cloud services, including search engines, proxy caches, and content delivery tools [1, 3, 14]. Earlier work by Birman and Friedman in 1996 had already shown a consistency-availability lower bound for non-commuting operations [14]. Brewer’s team also shared related findings in 1997 at SOSP and in a 1999 paper on scalable systems [1].
Revenue goals and uptime contracts pushed those early web engineers to favor availability through caches and deferred logs, which lowered consistency. Brewer first framed that trade-off as ACID versus BASE, though database engineers pushed back because they trusted ACID guarantees. To open minds to other designs, Brewer formulated the CAP principle in 1998, published it in 1999, and gave a keynote at ACM PODC on July 19, 2000 [1, 3, 14].
In 2009, writer Julian Browne compared Brewer’s 2000 talk to the Sex Pistols’ June 4, 1976 gig at Manchester’s Lesser Free Trade Hall, a show chronicled in David Nolan’s book I Swear I Was There. Just as three punk chords let new bands form after protopunk acts around 1971, Brewer’s rule gave Amazon, eBay, and Twitter room to scale with three servers [1]. Gilbert and Lynch proved the conjecture in 2002 and later described it in Computer as part of a wider balance between safety and liveness [4, 14].
Why CAP Theorem Is True
When a network link snaps between two nodes, no server can know what updates happened on the isolated side, so keeping both consistency and availability is impossible [3, 5, 11]. Picture a website with one server in the USA and one in Europe. If a user in the USA updates a display name and the transatlantic link fails, a server in Europe faces an immediate fork when someone requests that profile [11].
Returning the older cached name keeps the European server responsive, but the two sides now show conflicting values [5, 11]. Refusing reads or writes on the disconnected server preserves one shared truth, yet that healthy node must send back an error instead of data [3, 5]. That split between stale answers and refused requests is the core proof of the theorem [5].

Real cases show why stale reads break expectations. In Browne’s bookstore example, only one copy of Leo Tolstoy’s War & Peace sits in stock, so letting two shoppers pay during a split oversells the shelf [1]. Martin Kleppmann used the 2014 World Cup final to show linearizability: if Alice sees the final score and tells Bob in the same room, Bob expects his phone refresh to match, even if a lagging replica hides the goal [5]. Engineers can read more about how distributed systems balance consistency and uptime when tuning those choices.
How Is CAP Theorem Different From ACID Properties?
Although both names share the letter C, CAP consistency and ACID consistency define two different rules [3, 9, 14]. ACID stands for atomicity, consistency, isolation, and durability, the core traits of relational database transactions. In ACID, consistency means a transaction preserves every rule set by the schema, such as unique keys, so bad writes can’t corrupt stored records [3, 9]. CAP consistency cares only about single-copy linearizability across replicas, which Brewer called a strict subset of ACID consistency [3, 5].
Isolation is the ACID property that collides hardest with network splits [1, 3]. True serializability asks nodes to coordinate, so an isolated partition can’t run full ACID isolation on both sides at once. Atomicity and durability stay useful during outages: keeping durable transaction logs on each side lets engineers run compensating steps to fix rule breaks once links heal [3].
To name systems that relax strict transactions for uptime, Brewer and his team coined the acronym BASE—Basically Available, Soft state, Eventually consistent—in the late 1990s [3, 9, 14]. NoSQL stores built around BASE accept temporary drift so any node can keep answering requests. Traditional relational databases like PostgreSQL and MySQL instead lean toward ACID rules and wait on locks or fail writes rather than serve stale rows [9, 11, 14].

CP and AP Databases in Practice
In textbooks, databases fall into CA, CP, or AP buckets, yet a true CA distributed store can’t exist over real networks where cables fail and packets drop [9, 10, 14]. Running a single-node database avoids partitions altogether, though scaling writes beyond one machine soon forces engineers to pick CP or AP behavior [1, 11]. Splitting records across machines also raises practical design questions around balancing moving data across nodes without overloading single servers.
CP databases protect data accuracy by stopping writes or reads on partitioned nodes until replicas catch up. MongoDB, which stores BSON documents, uses a single primary per replica set to accept writes; if that primary drops offline, the cluster holds an election and blocks writes until a new leader takes over [9, 10]. Redis also picks consistency over availability during splits, a model suited for flight seat 6A bookings, stock trading books, and single-item e-commerce carts [9, 11, 14].
AP databases such as Apache Cassandra, CouchDB, and ScyllaDB rely on masterless peer-to-peer layouts so any healthy machine can take writes at any time [9, 10, 14]. Nodes later swap updates through repair tools to reach eventual consistency [9, 10]. That trade-off fits social profile photos, Netflix movie blurbs, or Yelp restaurant hours, where showing an hour-old edit beats a blank error screen [11]. Even small slowdowns hurt business: Amazon found a tenth of a second of extra lag cut sales by 1%, while Google saw half a second trim traffic by 20% [1].

Using the CAP Theorem in Distributed Systems
Twelve years after his PODC keynote, Brewer wrote that the “2 of 3” slogan misleads teams because partitions are rare, leaving systems free to hold both consistency and availability almost all the time [3, 14]. In practice, applying the CAP theorem in distributed systems happens feature by feature rather than across an entire app [3, 11]. Ticketmaster needs strong consistency when someone books a seat, yet it can serve slightly stale descriptions while fans browse event pages [11].
Tinder splits its traffic the same way, enforcing consistency when two people swipe right to match while tolerating stale caches for profile pictures [11]. Facebook used a hybrid trick in which user edits went straight to a single master copy, and that user’s reads stayed pinned to the master for 20 seconds before shifting back to closer replicas [3]. Google Spanner is classified as CP under strict proofs, yet tight clock sync lets it behave like an “effectively CA” store in normal cloud operation [9, 11].
Researchers also refine the middle ground between rigid linearizability and loose eventual consistency [8, 11]. Causal consistency keeps related events in order, like showing a comment only after its post, while read-your-own-writes ensures users see their own edits right away [11]. In 2019, Muñoz-Escoí and coauthors mapped a full hierarchy of CAP-constrained and CAP-free models in The Computer Journal [8]. More recently, a 2026 study by K. Sellappan in 工程科学与技术 proposed splitting international payment clearing into consistency zones so per-zone consensus keeps final settlement linearizable without waiting on global locks [13].
Critiques of the CAP Theorem in Distributed Systems
Not every distributed-systems engineer thinks CAP labels help teams build better software [5, 6]. In a May 2015 post, Martin Kleppmann argued that calling stores “CP” or “AP” oversimplifies real engineering because CAP’s formal model covers only a single read-write register and ignores multi-object transactions. Real clusters also fail from disk exhaustion, software bugs, and server reboots rather than clean network cuts, and systems using asynchronous replication for speed often deliver neither strict linearizability nor CAP availability [5].
In a September 2015 arXiv paper—a preprint that has not undergone peer review—Kleppmann surveyed ambiguities around the CAP theorem in distributed systems and proposed a “delay-sensitivity” framework to measure how operation wait times respond to network lag [5, 6]. Brewer himself noted in 2012 that timeouts turn CAP into a latency choice: retrying Paxos or two-phase commit forever picks consistency, while tight timeouts force slow networks into partition mode before cables even break [3].

Critics also point out that modern workloads go beyond classic key-value stores [7, 12]. In 2025, A. G. Anagnostakis and E. Glavas published a new CAP theorem in Future Internet for autonomous IoT micro-blockchains, proving that consensus achievement, autonomy, and entropic performance can’t all reach peak levels at once [12]. Marc Brooker still sees clear value in CAP for mobile apps and IoT sensors in elevators or blackout zones, where links drop constantly [14].
PACELC and Latency Tradeoffs
To fix what CAP leaves out, Yale professor Daniel Abadi introduced the PACELC theorem in April 2010 [2, 9, 14]. Abadi noted that CA and CP systems act the same way during a split—both lose availability—while AP systems drop consistency even when the network runs fine. In his view, teams don’t relax consistency only to survive broken cables; they relax it to cut round-trip delays across wide-area links [2].
Abadi proved his point with Yahoo’s PNUTS system, known outside academia as Sherpa, which was missing from a list of more than 35 NoSQL stores in 2010. PNUTS gives up both strict consistency and full write availability: it offers timeline consistency via asynchronous copies to avoid hundreds of milliseconds of WAN delay, yet still stops writes if a record’s local master dies [2, 3]. MySQL, PostgreSQL, and CockroachDB follow a PC/EC profile that guards consistency during splits and normal traffic, while Amazon’s Dynamo, Cassandra, SimpleDB, and ScyllaDB run as PA/EL stores that favor uptime and low latency [2, 9].
Yahoo PNUTS sits in a rarer PC/EL group, trading consistency for low latency in normal conditions while protecting consistency over availability if a split hits [2]. Researchers Patinge, Karkhanis, and Barapatre wrote in 2016 that PACELC fills CAP’s blind spot around everyday performance, giving engineers a clearer map for cloud databases [7, 14]. Knowing both models helps teams pick storage that fits real traffic instead of chasing an impossible three-way promise [3, 9, 11].
- WEBSITE Browne, J. (2009, January 11). Brewer’s CAP Theorem. Julian Browne. [Article Link]
- WEBSITE Abadi, D. (2010, April 23). Problems with CAP, and Yahoo’s little known NoSQL system. DBMS Musings. [Article Link]
- WEBSITE Brewer, E. (2012, May 30). CAP Twelve Years Later: How the “Rules” Have Changed. InfoQ. [Article Link]
- ACADEMIC JOURNAL Gilbert, S. L., & Lynch, N. (2012). Perspectives on the CAP Theorem. Computer, 45(2), 30-36. [Article Link]
- WEBSITE Kleppmann, M. (2015, May 11). Please stop calling databases CP or AP. Martin Kleppmann. [Article Link]
- PREPRINT Kleppmann, M. (2015). A Critique of the CAP Theorem. arXiv. [Article Link]
- ACADEMIC JOURNAL Patinge, O., Karkhanis, V., & Barapatre, A. (2016). Inadequacies of CAP Theorem. International Journal of Computer Applications, 151(10), 18-20. [Article Link]
- ACADEMIC JOURNAL Muñoz‐Escoí, F. D., Juan‐Marín, R. d., García-Escrivá, J., Mendívil, J. R. G. d., & Bernabéu‐Aubán, J. M. (2019). CAP Theorem: Revision of Its Related Consistency Models. The Computer Journal, 62(6), 943-960. [Article Link]
- WEBSITE ScyllaDB. (2022, March 14). CAP Theorem. ScyllaDB. [Article Link]
- WEBSITE IBM. (2022, December 20). What Is the CAP Theorem? IBM. [Article Link]
- WEBSITE King, E. (2025, February 20). CAP Theorem for System Design Interviews. Hello Interview. [Article Link]
- ACADEMIC JOURNAL Anagnostakis, A. G., & Glavas, E. (2025). The New CAP Theorem on Blockchain Consensus Systems. Future Internet, 17(4), 157-157. [Article Link]
- ACADEMIC JOURNAL Sellappan, K. (2026). Bridging the CAP Theorem: Hybrid Data Consistency Models for Highconcurrency International Payment Clearing Systems. 工程科学与技术. [Article Link]
- WEBSITE Wikipedia. (n.d.). CAP theorem. Wikipedia. [Article Link]