Recap
The lesson in nine lines. First, what CAP says:
- Two copies and a broken link: each side must answer from its own copy, or refuse.
- A partition leaves both sides running, and from inside it looks like any reply that does not come.
- Consistent: every answer reflects every change confirmed before its request, as if there were one copy.
- Available: every running server answers every request, and an error is not an answer.
- The theorem: where the network may cut two sides apart, no store keeps both.
- P is not a choice. The choice is C or A, and only during a partition.
Then what it costs, and what it leaves out:
- C costs errors now. A costs stale answers now and conflicts later.
- CAP covers two exact promises and one fault, while the fault lasts, and nothing else.
- Many real stores are neither CP nor AP.