CAP — Consistency, Availability, Partition tolerance. PACELC — extends CAP with latency.
CAP Theorem:
CAP:
If Partition: choose Availability or Consistency
AP: Cassandra (available, eventual consistency)
CP: MongoDB (consistent, may reject)
PACELC Theorem:
PACELC:
If Partition: choose A or C
Else: choose Latency or Consistency
EL: DynamoDB (low latency)
EC: Spanner (strong consistency)
Key differences: