Grokking System Design Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
Examples of CAP Theorem in Practice
On this page

Let’s look at how some real-world systems exemplify CAP trade-offs:

  • MongoDB (CP): MongoDB is a popular NoSQL database which, by default, prioritizes consistency. It uses a primary-secondary replication model. Only the primary can accept writes, and if the primary is lost (partitioned away or down), the system elects a new primary. During that failover window, writes are not accepted – a sacrifice of availability to ensure no two primaries exist (consistency). Once a new primary is in place and secondaries are synchronized, the cluster resumes normal operations

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page