CAP Theorem / Brewer's Theorem
Updated 2026-07-30
Summary
In theoretical computer science, the CAP theorem, also known as Brewer's theorem, states that it is impossible for a distributed computing system to simultaneously satisfy the following three guarantees: Consistency: All nodes access the same latest data copy. Availability: Every request receives a non-error response, but without guarantee that the data is the latest. Partition tolerance: In effect, partition refers to a time limit on communication. If the system cannot achieve data consistency within the time limit, it means a partition has occurred, and a choice must be made between C and A for the current operation. The simplest way to understand CAP is to imagine two nodes on opposite sides of a partition. Allowing...
Definition
In a distributed system (such as blockchain, cloud database), it is impossible to satisfy all three of the following simultaneously; at most, you can choose two out of three: 1. Consistency: All nodes see the same data at the same time. 2. Availability: The system responds to every request (does not crash). 3. Partition Tolerance: The system continues to operate even if network failures prevent nodes from communicating.
Introduction
How to use
In theoretical computer science, the CAP theorem, also known as Brewer's theorem, states that it is impossible for a distributed computing system to simultaneously satisfy the following three guarantees: Consistency: All nodes access the same latest data copy. Availability: Every request receives a non-error response, but without guarantee that the data is the latest. Partition tolerance: In effect, partition refers to a time limit on communication. If the system cannot achieve data consistency within the time limit, it means a partition has occurred, and a choice must be made between C and A for the current operation. The simplest way to understand CAP is to imagine two nodes on opposite sides of a partition. Allowing...
Mechanism
Based on the 'distributed impossible trinity'. Network partitions (P) are inevitable, so in practice, there is a trade-off between C and A; during a partition, either choose consistency (sacrificing availability) or availability (sacrificing consistency).
Practice
In progress 0/1Practice this model in one real situation:
Cases
- Payments choose CP for consistency, social feeds choose AP for availability.
Common pitfalls
- Thinking all three can be achieved; ignoring that P is inevitable; not choosing based on scenario.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/CAP%E5%AE%9A%E7%90%86verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS