What is CAP theorem?

What is CAP theorem?

Approach: Describe tradeoff in distributed systems.

In distributed systems, at most two of three guarantees: Consistency (all nodes see same data), Availability (every request gets response), Partition tolerance (system works despite network partitions).

Follow-up: Which do databases sacrifice?

Key concepts: consistency, availability, partition tolerance.