Skip to content
Discussion options

You must be logged in to vote

CAP Theorem in Distributed Systems

The CAP theorem states that a distributed database can only provide two out of the following three guarantees at the same time:

1. Consistency

Every read returns the most recent write.
This is crucial in distributed systems because data is replicated across multiple servers, and immediate replication is required to ensure consistency.

2. Availability

Every request receives a valid response, regardless of the state of other nodes in the system.

3. Partition Tolerance

The system continues to operate even during partial network failures without losing data.


Example Scenarios

  • Consistency + Availability: The system cannot tolerate network partitions.
  • Avail…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BugNoJutsu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants