We may earn an affiliate commission when you visit our partners.

CAP Theorem

Save
May 13, 2024 5 minute read

The CAP Theorem is a fundamental theorem in computer science that describes the trade-offs involved in designing distributed systems. It states that it is impossible for a distributed system to simultaneously provide all of the following three guarantees:

Consistency

Consistency ensures that all nodes in the system have the same view of the data at all times. This means that if one node writes data to the system, all other nodes will eventually see that data.

There are two main types of consistency: strong consistency and eventual consistency. Strong consistency guarantees that all nodes see the same data at all times, while eventual consistency guarantees that all nodes will eventually see the same data, but there may be a delay before the data is propagated to all nodes.

Availability

Share

Help others find this page about CAP Theorem: by sharing it with your friends and followers:

Reading list

We've selected seven books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in CAP Theorem.
Provides a deep dive into the design and implementation of data-intensive applications, including a discussion of the CAP Theorem and its implications for data consistency.
Provides a practical guide to designing and building microservices, including a discussion of the CAP Theorem and its implications for system design.
Provides a comprehensive overview of fault-tolerant systems, including a discussion of the CAP Theorem and its implications for system design.
Provides a comprehensive overview of distributed systems, including a discussion of the CAP Theorem and its implications for system design.
Provides a comprehensive overview of distributed systems in German, including a discussion of the CAP Theorem and its implications for system design.
Provides a comprehensive overview of distributed systems in Spanish, including a discussion of the CAP Theorem and its implications for system design.
Provides a survey of open source software architectures, including a discussion of the CAP Theorem and its implications for system design.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser