Systems & Backend

CAP Theorem

During a network partition a distributed store must choose consistency or availability, not both.

The CAP theorem states that when the network partitions, a system can keep data consistent (every read sees the latest write) or stay available (every request gets a response), but not both. It frames the core trade-off of every distributed database.