📐 Data Modeling

CAP Theorem

A theorem stating that a distributed data store can only guarantee two of the three: Consistency, Availability, and Partition Tolerance.

The CAP theorem is fundamental to understanding distributed systems and NoSQL databases.

The Three Properties


- Consistency: Every read receives the most recent write or an error.
- Availability: Every request receives a (non-error) response, without the guarantee that it contains the most recent write.
- Partition Tolerance: The system continues to operate despite an arbitrary number of messages being dropped/delayed by the network.

Rule: In a distributed system (P), you must choose between C and A.

Key Points

← Back to Glossary

Last updated: 2026-01-21

SR

Published by

Sainath Reddy

Data Engineer at Anblicks
🎯 4+ years experience