Under network partition, you must pick consistency or availability.
CAP Theorem: under network partition, you must pick consistency or availability
choose the failure mode you can explain
AP keeps users productive; CP keeps invariants tight.
When a network partition splits replicas, you can either reject writes to keep state consistent (CP) or keep accepting writes and reconcile later (AP). CAP says you cannot have both.
CAP is only about behavior during partitions. Outside partitions, every system trades latency vs consistency separately (PACELC).
CP examples: HBase, traditional RDBMS with synchronous replication, etcd, ZooKeeper. They prefer to refuse rather than diverge.
AP examples: Cassandra (default), DynamoDB tunable, Riak. They prefer to keep serving and reconcile via vector clocks, LWW, or CRDTs.
Two-region active-active write store under inter-region partition.