Medium Database Systems Distributed Databases
Explain the CAP theorem and its implications.
Answer
CAP theorem states a distributed system can guarantee at most two of three properties: Consistency (all nodes see same data), Availability (every request gets response), Partition tolerance (system works despite network partitions). Since partitions are inevitable, choice is between CP (consistent but may be unavailable - MongoDB, HBase) and AP (available but eventually consistent - Cassandra, DynamoDB). PACELC extends this: when no partition, trade-off is Latency vs Consistency.
IIT Certified
Master These Concepts with IIT Certification
175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.
Relevant for Roles
Senior Software Engineer Systems Architect Database Architect