0% completed
Examples of CAP Theorem in Practice
The categories become much easier to remember once you attach them to systems you have heard of. This lesson walks through four, two on each side.
For every one, the question to keep in mind is the same: when the network splits, does this system stop or does it answer?
MongoDB: CP
MongoDB replicates data using one primary and several secondaries. Only the primary accepts writes. The secondaries copy from it.
Now lose the primary, either because it crashed or because a partition cut it off from the rest.
The remaining nodes hold an election and promote a new primary
.....
.....
.....
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.
F Y
· a year ago
Could you tell me how CA is possible when P is not?