CAP Theorem

Difficulty: Advanced

Question

Explain the CAP Theorem.

Answer

In a distributed system, you can only guarantee two out of three: **Consistency**, **Availability**, and **Partition Tolerance**. Since partitions are inevitable in networks, you usually choose between CP or AP.

Concepts covered

Consistency, Availability, Partition Tolerance, Distributed Systems