skip to content
~11 min

Why “pick two of three” misleads

A store is sold as “CA”: consistent and available. It runs in two data centres. Then the link between them fails, and a request reaches one of them. That side cannot ask the other: it refuses, or it answers from its own copy. Keeping both was never on offer.

The triangle offers a choice of two. The real choice is smaller, and exists only while the link is down.
CAPpick twolink down?noCAP asks nothingyesrefusekeeps C · CPanswerkeeps A · AP

CAP is often told as “pick any two”, as if C, A and P were three corners to choose from. The picture misleads, because P is not something a store picks. A partition can happen on any real network, wanted or not.

So one choice is left, and it arises only during a partition:

  • Refuse, and stay consistent. Such a store is called .
  • Answer, and stay available. Such a store is called .

While the network works, CAP asks nothing: a store can be consistent and available together.

Strictly, “CA” can be kept only by a store on a single machine, with no link to lose. On a network, the label means nobody has said what happens when the link fails. The store will do one of the two anyway. Even a store that turns every request away, on both sides, until the link returns has chosen: that is CP.

in one line

A partition is not a choice, so a store chooses only between consistency and availability, and only while a partition lasts.