System Design Fundamentals

0% completed

Examples of CAP Theorem in Practice

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!
Daniel

Daniel

· 2 years ago

I think even in this description it shows that CA can’t really happen. In other words you will always have network issues and in that case either availability or consistency will be hurt.

Show 2 replies
F Y

F Y

· a year ago

Could you tell me how CA is possible when P is not?

Show 1 reply