PACELC theorem
Extends CAP: with a partition, you choose availability or consistency; else, latency or consistency.
Example
With no network cuts, waiting for 3 copies adds 80 ms: you choose consistency at the cost of latency.
Test yourself: PACELC theorem
PACELC theorem
What does PACELC add to CAP?
CAP only covers the network cut; PACELC adds what happens the other 99% of the time: latency or consistency.
PACELC theorem
CAP takes into account how long a database takes to answer.
CAP only asks whether there's an answer, not when it arrives. An answer in 30 days counts the same as one in 30 ms; PACELC adds latency.
PACELC theorem
A database always prioritizes correct data. What does it choose in PACELC's 2 cases?
With a partition it chooses C (doesn't answer) and without one also C (takes about 80 ms longer).
0/3
â–¶ Play