System Design

CAP Theorem

February 14, 20265 min readPremium

What the CAP Theorem Says

The CAP theorem states that it is impossible for a distributed system to simultaneously provide all three of the following:

  1. Consistency (C)
  2. Availability (A)
  3. Partition tolerance (P) In practice, partitions (network failures between nodes) can and do happen. So we usually treat partition tolerance as a given: the system must keep operating despite partitions. That leaves a choice: when a partition occurs, do we favor consistency (CP) or availability (AP)? We can't have all three at once.

Sign in required

Create an account or sign in to access the full article and templates.