PACELC

acronym

cloudprogramming

Kept in this browser · My desk

Stands for: if Partition, then Availability or Consistency; Else, Latency or Consistency

Daniel Abadi's restatement of the CAP theorem: if there is a Partition, a system trades Availability against Consistency; Else, in normal operation, it trades Latency against Consistency.

Abadi's 2012 paper argued that CAP describes only behaviour during a partition, the arguably rare case, while the trade between consistency and latency is present at all times and has shaped database design more. Synchronous replication pays a round trip on every commit to stay consistent; asynchronous replication answers faster and accepts loss or stale reads. Systems are classified by both halves, for example PA/EL for designs that give up consistency both during partitions and for latency.

Origin. CAP was Eric Brewer's conjecture of 2000; Seth Gilbert and Nancy Lynch proved it in 2002 and in 2012 placed it inside a broader result, that safety and liveness cannot both be guaranteed in an unreliable distributed system. Abadi's PACELC, pronounced pass-elk, adds the normal-operation half. Examples. Dynamo-style stores let clients raise R and W to buy consistency at the cost of latency; consensus systems such as Spanner and etcd pay a round trip to a majority for every write, which Google's SRE book quantifies at about 45 ms inside the United States and 70 ms between New York and London. Use. The formulation is a design checklist rather than a theorem: for each store, ask what it does during a partition and what each write costs when nothing is broken.

Also known as: pacelc theorem

← Back to P Back to the glossary