The CAP Theorem 00:00:01 The isolated desk cannot verify the price Three booking desks share a value. One desk stays alive but loses contact with the other two. A customer at the isolated desk asks for the latest value after a confirmed write. All nodes are connected and hold v1. Node 3 is cut off. It still runs, and it cannot tell whether the others crashed. Client A writes v2 through node 1, which reaches node 2. 2 of 3 nodes: enough. Client B asks node 3 for the value. Node 3 sees 1 of 3, so it refuses instead of saying v1. Node 3 gets the missed write and serves again. The majority side can continue under this design. Declining a request on the isolated healthy side sacrifices availability in the theorem's sense to preserve a single real-time history. 00:00:53 Let both sides edit the shopping cart Repeat the split with a cart whose two shoppers add different products. This time each reachable desk accepts local work. Predict what each shopper can see before messages resume. The cart holds a book on every node. Node 3 is isolated but keeps serving. Client A adds a pen. Nodes 1 and 2 take it. Client B adds a lamp at node 3. It is accepted too. A reader on each side sees a different cart. The carts are joined: book, pen and lamp. The union works for this add-only example. Removals, quantities or exclusive reservations need their own conflict semantics before independently accepted edits can be reconciled. 00:01:38 The message that cannot cross Strip the problem to a pair of nodes and a single register. The left accepts a new value. The right has exactly the observations it would have had without that write. Then the link is cut. To be available the left node says ok. To be available the right node answers. It only knows 0. Consistency demands 1. So at least one promise is broken. Answering on both sides during this partition can violate linearizability. Waiting for communication or returning an error gives up the guarantee that every request to a non-failing node completes successfully. 00:02:14 A majority depends on membership Test clusters with three, four and five voters. A majority means strictly more than half. Split the even-sized group into two pairs and predict which pair can commit alone. A majority is 2, so one may fail. A majority is 3. Still only one may fail. A majority is 3 and two may fail. Five nodes split 2 and 3: only the 3 may write. Four split 2 and 2: nobody may. No pair can form three votes in a four-voter cluster. Two disjoint majorities cannot exist under fixed membership, although the voting protocol must also protect the chosen history. 00:02:55 The seat map and the purchase differ One seat remains in a theater when the regions lose contact. The map can still help a visitor browse. The purchase would promise a specific guest an exclusive seat. Both regions know it. Both sides say yes. After healing, two guests hold one seat. The majority side sells. The other asks to try later. Node 3 still shows the seat map, marked as possibly out of date. Only buying is refused. Design each operation around its own promise. An available, explicitly stale map and a coordinated reservation can coexist, even when the isolated region must refuse a sale.