What CAP actually says
The CAP theorem, formalised by Eric Brewer in 2000, says a distributed system can guarantee at most two of three properties at any moment:
- C โ Consistency: every read sees the most recent write (linearisability).
- A โ Availability: every request gets a non-error response.
- P โ Partition tolerance: the system keeps working when nodes can't talk to each other.
The usual visualisation (a triangle, pick two) is misleading. In reality networks will partition โ packets get dropped, switches fail, racks lose power. P isn't really optional. So the practical choice is between C and A during a partition. CAP is really "CP vs AP under partition".
