The CAP principle
DISTRIBUTED-SYSTEMSSYSADMIN
From The practice of cloud system administration and other places.
CAP stands for -
- Consistency
- Availability
- Partition resistance
The CAP principle states that a distributed system can have at max two of the three.
Consistency
All nodes see the same data at the same time. It is not necessary that this is achieved. Some delay for replication is considered OK, depending on the use case.
Availability
Whether the system is up or not - that is every request receives a response, whether successful or not.
Partition Resistance
System continues to work despite partial loss of functionality or arbitrary message loss.
This principle leads to three types of systems -
- CA
- CP
- AP