Bookmarks

PACELC theorem

An extension of the CAP theorem: even without a network partition, a distributed system chooses between latency and consistency.

Also: PACELC theorem, extension of the CAP theorem

checked 8 Nov

All terms

The CAP theorem describes the choice only in an emergency — during a network partition. Daniel Abadi noticed that the trade-off is there in normal operation too: replicas that acknowledge writes synchronously respond more slowly, while a system that responds quickly serves data that is not quite fresh. PACELC captures both choices in a single formula.

How to read the formula

The theorem’s name is the formula itself, pronounced “pass-elk”. The first part, PAC, repeats CAP: on a partition (Partition) the system sacrifices availability (A) or consistency (C). The second part, ELC, describes normal operation: otherwise (Else) one chooses latency (Latency) or consistency (C). This second choice only faces systems with replicas: a single copy cannot diverge, but when a node fails the system is simply unavailable.

Part of the formulaSituationWhat is chosen
PAnetwork partitionavailability: nodes answer with their local copies
PCnetwork partitionconsistency: operations wait for a quorum or fail
ELno partitionlatency: a fast response, possibly from a stale copy
ECno partitionconsistency: wait for the replicas to acknowledge

System examples

In his 2012 paper Abadi placed specific systems into different classes, judging by how their default settings behave. A class is not a verdict: configuration moves a system between classes, and the price is the latency of every request.

SystemWith a partitionWithout a partition
Dynamo, Cassandra, RiakPA — availabilityEL — low latency
VoltDB, Megastore, BigTable, HBasePC — consistencyEC — consistency
MongoDBPA — availabilityEC — consistency
PNUTSPC — consistencyEL — low latency

Origin of the term

Daniel Abadi proposed the formula in the paper “Consistency Tradeoffs in Modern Distributed Database System Design”, published in the journal IEEE Computer in February 2012. The paper examined how faithfully the CAP letters describe systems and added to the theorem the everyday price of replication — latency.

Sources

the term is written from these pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • CAP theorem

    CAP describes only behaviour during a network partition; PACELC adds the choice between latency and consistency in normal operation.

In depth in the references

where the topic is covered in detail