Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4807

PACELC Theorem

PACELC Theorem
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-08-02

Loading revision record…

Summary

Daniel Abadi's extension of the CAP theorem: during a partition a system trades consistency against availability, and the rest of the time it trades consistency against latency.

Definition

The PACELC theorem was formulated by Daniel Abadi in a 2010 blog post and a 2012 paper in IEEE Computer, extending the CAP theorem. CAP covers only the partition case; PACELC adds the else branch. If a Partition occurs, a system chooses between Availability and Consistency; Else, when the network is healthy, it chooses between Latency and Consistency. Abadi's point is that the second trade-off operates almost all of the time, so a design described only by CAP says nothing about its ordinary behavior. Systems are classified accordingly, as PA/EL or PC/EC.

How to use

- Classify systems: label a database by both branches, not just its CAP posture. - Budget latency: ask what response time you will pay for stronger consistency. - Revisit defaults: remember the everyday trade-off dominates, since partitions are rare in practice and latency is always present.

Mechanism

Partitions are rare, so the everyday constraint is response time. Strong consistency forces a node to wait for acknowledgement from replicas before answering, and that coordination cost appears directly as latency. Relaxing consistency lets a node answer from local state immediately, at the price of possibly stale reads. Because the two regimes pose different questions, availability versus consistency under failure and speed versus accuracy in normal operation, they must be reasoned about separately.

Practice

In progress 0/1

Practice this model in one real situation:

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

Cases

  • Amazon DynamoDB and Apache Cassandra choose availability during partitions and low latency otherwise, accepting eventually consistent reads.
  • Google Spanner chooses consistency in both branches, using atomic clocks and true time to order transactions, and pays for it in write latency.
  • Core banking ledgers typically accept higher latency to keep every balance strongly consistent, because stale reads are intolerable there.

Common pitfalls

  • Using CAP alone to describe a system, which hides the trade-off that applies almost all the time; assuming eventual consistency is always cheaper; treating the labels as permanent rather than configuration-dependent.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/PACELC_design_principleZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS