Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2099

CAP Theorem / Brewer's Theorem

CAP Theorem / Brewer's Theorem
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/CAP%E5%AE%9A%E7%90%86ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS