CAP Theorem

CAP theorem says a distributed data system cannot simultaneously guarantee consistency, availability, and partition tolerance during a network partition.
Also known as
Brewer theorem

Intuition

When the network splits, a system must choose between answering every request and preserving one consistent view of data.

Technical definition

Under partition, a distributed system must trade off availability against linearizable consistency; partition tolerance is a condition to survive, not an optional feature.

Example

A replicated store may reject writes during a partition to preserve consistency.

Common misunderstandings

  • CAP is often oversimplified as choosing two of three forever.
  • Real systems make more nuanced consistency and availability tradeoffs.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.