Captheorema
CAPtheorema, commonly known as the CAP theorem or Brewer's theorem, is a principle in distributed computing that describes trade-offs among three properties: Consistency, Availability, and Partition tolerance. The theorem asserts that in a distributed data store that tolerates network partitions, it is impossible to guarantee all three properties simultaneously. Therefore, a system must prioritize two of the three, accepting the compromise on the third.
- Consistency means that all reads reflect the most recent write or an error; every operation appears
- Availability means that every request receives a (non-error) response, without guaranteed freshness of data.
- Partition tolerance means the system continues to operate despite message loss or delays between nodes, effectively
The CAP theorem was proposed by Eric Brewer in 2000 and later formalized and proven by Seth
In practice, systems are described as CP (consistency and partition tolerance), prioritizing data correctness over availability