ReviseAlgo Logo
Beginner8 min readFoundations of Distributed Systems

CAP Theorem

The definitive proof that distributed networks under partition states must trade consistency for availability.

What you'll learn

  • Consistency
  • Availability
  • Partition Tolerance

TL;DR

The definitive proof that distributed networks under partition states must trade consistency for availability.

Visual System Topology

CAP Theorem Constraints

Pick Any Two
Consistency (C)
Availability (A)
Partition Tolerance (P)

Concept Overview

The CAP Theorem states that a distributed system can only guarantee two out of three properties: Consistency, Availability, and Partition Tolerance.

Since network partitions (P) are inevitable in distributed systems, you must choose between Consistency (C) and Availability (A). This fundamental trade-off shapes how distributed databases are designed.

Key Architectural Pillars

1

Consistency

All nodes see the same data at the same time. A read returns the most recent write.

2

Availability

Every request receives a response, even if some nodes are down. System remains operational.

3

Partition Tolerance

System continues to operate despite network partitions (nodes can't communicate). Required in distributed systems.

AI Tutor

Ask about the topic

Sign in Required

Please sign in to use the AI tutor

Sign In
CAP Theorem - Module 1: Foundations of Distributed Systems | System Design | Revise Algo