Inside a Key-Value Store 00:00:01 One key maps to three named replicas A client writes a user profile through a coordinator. Follow the key's hash clockwise around the ring and mark each of the three owners before counting the confirmations. PUT user:123 reaches a node that acts as the coordinator. The hash starts with 7A: 122 of 256, so position 48%. Clockwise from 48%: C at 50%, D at 75%, then A at 0%. Node B is not involved. Version 8 is sent to all three replicas at once. C and D have stored it. A is still busy. Two answers are enough. A stores version 8 a moment later. Ownership identifies where writes belong. The configured write threshold decides when the coordinator replies, and a remaining replica can still be applying the value afterward. 00:00:57 A read brings an old copy up to date Fetch the same user profile. Two owners answer with different versions. This time one version directly descends from the other, so the coordinator can order the replies without inventing a conflict policy. GET user:123 reaches the coordinator. The same hash gives the same three: C, D and A. A and C answer first. They are the quorum. Version 8 was made from version 7, so it is newer. No conflict. A receives version 8, and the client gets its value. Return the resolved result and repair the lagging owner according to policy. Concurrent incomparable versions would instead need the store's documented merge or sibling handling. 00:01:39 Insert a new owner between two old ones A new machine enters the ring at sixty-two percent. Trace its primary interval and the additional ranges it must replicate before it can safely take over its full assignment. A new machine, E, is added by an operator. E gets the position 62%, between C and D. E must hold 50% to 62% as owner, and copies of 25% to 50% and of 0% to 25%. The three ranges are copied from nodes that hold them. Those nodes keep serving. The new membership spreads. Every node now has ring version 2. E serves its ranges. D, A and B delete the copy they no longer need. Copy and reconcile data before finalizing the authoritative ownership view. Coordinate the cutover so lagging routers neither drop accepted writes nor continue writing indefinitely to obsolete owners. 00:02:33 A failed write appears in a later read A coordinator needs two confirmations, but the next version reaches only one replica before the operation fails. Predict whether failure tells the client that absolutely no data changed. Three replicas, W equals 2. The write of version 9 still reaches C and A. Version 10 reaches C only. One is less than two. Reads and repair spread version 10 from C. The client that saw an error must accept that its write may appear. A timeout or insufficient acknowledgments can mean an uncertain result. Use idempotency, explicit version rules and reconciliation when a retry might encounter a partly propagated write. 00:03:13 One popular profile fills the same three machines One key becomes an event's most-read profile. Its three replicas are saturated while another ring member is idle. Ask whether merely adding nodes increases the replica set for this existing key. The key lives on C, D and A. They are full; B idles. New nodes take other keys. This key still has three homes. The coordinator keeps the value for one second. Nearly all reads stop there. A short-lived read cache can absorb repeat lookups when the freshness budget permits it. The hot key's writes and any strict visibility requirements still need a separate capacity plan.