⌘K
Flycodx

CAP Theorem: Consistency vs Availability

CAP Theorem: Consistency vs Availability

EasyHLD0% accepted

Explain the CAP theorem: a distributed system can guarantee at most 2 of 3 properties (Consistency, Availability, Partition Tolerance). Classify real systems (Cassandra, HBase, MySQL, Zookeeper) and discuss PACELC extension.

Approach

Explain CAP theorem and classify distributed databases as CA, CP, or AP.

Input

Cassandra - CAP classification

Output

AP: Cassandra prioritizes availability; during partition, may serve stale data; tunable consistency (ONE/QUORUM)

Scenarios & Expected Answers

Sign in to continue

Create a free account to view answers and mark progress.

  • Free forever — no credit card
  • Theory Q&A with detailed answers
  • Points, streaks & leaderboards
Auto Save On