Data Integrity vs. Uptime 00:00:01 Who must hear a write? All three copies show seven. Somebody changes the number while the link between sites is broken. One customer cares about the freshest number, another needs any answer immediately. Can the service promise both? All three copies hold 7. The write of 6 waits for three confirmations. Every copy is fresh afterwards. Copy 3 is dead, so the write fails, although two copies are fine. Two confirmations are enough. The write of 5 succeeds, and copy 3 catches up later. The write of 4 is confirmed by copy 1 alone: fast, and possible with two copies down. A read from copy 3 returns 5, an old value. If copy 1 dies now, the 4 is lost. Asking more replicas to confirm changes the evidence that exists before success is returned. That extra evidence has a latency cost and can make progress depend on more reachable participants. 00:01:05 Choose one authoritative history The side with the majority works, the other side refuses. Every side sees 1 ticket left. Changes travel between the data centers. Everybody is alive, but East cannot reach West. East has 1 of 3 copies: no majority. It refuses. West has 2 of 3. The last ticket is sold once. East catches up and works again. There is nothing to merge. During the split, a side that cannot establish the required authority must refuse or postpone certain operations. A visible error can be safer than two independent promises for the same item. 00:01:48 Let both sides accept work Both sides answer. Differences are found and repaired afterwards. Again 1 ticket left on both sides. West sells its ticket, East sells its ticket. Both users are happy. The sides compare: one ticket, two buyers. The application decides: the earlier order stays, the other is refunded. A cart would simply be merged. Allowing isolated sides to answer creates information that must later be compared or merged. A merge rule that is harmless for a counter may be unacceptable for a reservation. 00:02:27 The newest update misses promotion Fast writes, and what a promotion can lose. Both are on the primary and have been copied. The primary confirms 43 at once. The copy is on its way. 43 was never sent. The replica becomes primary. 43 does not exist any more, although it was confirmed. Had 43 waited for the replica, the client would have got its answer later, and 43 would be safe. An asynchronous follower can be healthy and still be behind. Promoting it does not conjure up an acknowledged write that never reached it. 00:03:02 A writer follows their own edit Read your writes on top of lagging replicas. A user changes their name to Ana. The primary has it, the replica does not yet. The page is read from the replica and shows the old name. The user thinks it was lost. For some seconds after a write this user is read from the primary. Everybody else may use the replica. The replica has the change, so the user can be read from it again. Read-your-writes is a meaningful session promise. Routing one person's next read to a suitable replica can address that use case without making every reader globally synchronous. 00:03:40 Let the stakes choose A wrong answer costs money: strong, in one transaction. The owner must see their own change. Others may wait. Always be able to add an item. Copies are merged, and checkout checks strongly. For this approximate popularity count, the shop tolerates brief staleness. The same allowance would be inappropriate for its final debit. Trace an actual customer consequence for each stale answer. A brief difference in an approximate popularity count and a second charge for one purchase have different business costs. Let each product operation specify what failure is more acceptable. A busy indicator, a shopping cart and the final debit need not share the same contract.