Amazon HLD: The Cart That Never Says No (Dynamo, Quorums, Merge)
An Amazon system design on the always-available shopping cart: AP over CP, a Dynamo-style replicated key-value store, quorums, consistent hashing, and merging divergent carts.
"Design Amazon." The catalog, search, and checkout are real subsystems, but the one that made Amazon rewrite distributed-systems history is the humblest: the shopping cart. Amazon's rule is that "add to cart" must never fail — not during a deploy, not during a datacenter hiccup, not during a network partition. A cart write that errors is a sale that didn't happen. So the cart deliberately gives up something most systems cling to — strong consistency — to buy something it values more: always-on availability. That trade, and how you survive its consequences, is this whole interview, and it's the…
What’s inside
Read this one free
Sign in and your first premium article is on us — read Amazon HLD: The Cart That Never Says No (Dynamo, Quorums, Merge) free.