Skip to content

CAP Theorem — Overview#

You can have consistency and availability — until the network fails. Then you must choose.

CAP theorem states that during a network partition, a distributed system can only guarantee two of three properties — Consistency, Availability, and Partition Tolerance. Since partitions are inevitable, the real choice is always CP or AP. This folder covers what that means, when to choose each, and how to apply it in every interview.


Files in this folder#

File Topic
01-CAP-Theorem.md The three pillars, why CA doesn't exist, the C in CAP = linearizability
02-CP-vs-AP.md CP systems, AP systems, real world examples, when to choose each
03-Interview-Cheatsheet.md The four-step formula, payment vs chat, full checklist