Skip to content

CAP Theorem

Medium — good to knowDatabase

ELI5 — The Vibe Check

The CAP theorem says a distributed database can only guarantee two out of three things: Consistency (everyone sees the same data), Availability (every request gets a response), and Partition tolerance (it works even when network connections break). Since networks always break, you're really choosing between C and A. Pick your pain.

Real Talk

The CAP theorem (Brewer's theorem) states that a distributed system can provide at most two of three guarantees simultaneously: Consistency (all nodes see the same data), Availability (every request receives a response), and Partition Tolerance (the system operates despite network failures). Since partitions are inevitable, practical systems choose between CP (consistent but may refuse requests) and AP (available but may return stale data).

When You'll Hear This

"CAP theorem means you're choosing between consistency and availability during a partition." / "Cassandra is AP, CockroachDB is CP, but it's more nuanced than that."

Made with passive-aggressive love by manoga.digital. Powered by Claude.