Amazon's system design
☰
Amazon's store is hundreds of services, each owning its own data: every page is assembled from 150+ calls, and the shopping cart sits on a database designed never to reject an 'add to cart'.
+ The whole system in one paragraph− Hide
Amazon's store isn't one program with one database. It's hundreds of services, each owning its own data, and every page is assembled from many of them. The shopping cart sits on Dynamo, a database built to never refuse an 'add to cart', even while machines fail. Placing the order is the opposite: careful, and done exactly once.
In this lesson
3 chapters · ~7 min · a quick check in eachEverything is on this page — just scroll down ↓
The whole system
What it must do — and how well
The cart must accept every 'add' even while machines fail; an order must happen exactly once. 192M is the Prime Day peak of DynamoDB, inspired by Dynamo but a different design.
The store: a page made of services, a cart that never says no
Top: every page is assembled from many small services, each owning its own data — search, catalog, recommendations, cart. Bottom: placing an order, from checkout to the warehouse.
You open a product page. A page-rendering service builds it, asking aggregator services for the pieces.
Curious? Go deeper+ 3 optional
Search: from 'running shoes' to a ranked page
Three matchers collect candidates — by the words, by what people bought after this query, by meaning — and models trained on clicks and purchases rank them. Search drives most sales (2016).
You type 'running shoes'. Query understanding fixes spelling and finds the product type: 'shoes' is the thing you want, 'running' only describes it. The same trick keeps dress socks out of a search for 'casual dress'.
'Customers who bought this also bought': built offline, read online
No comparing you with millions of shoppers on each visit: which items sell together is worked out ahead of time, and the page only looks up your few items. Stages 1–4 run offline.
7 steps. Follow the flow one step at a time — what happens first, and what comes next.
One product, many sellers: which offer you get
More than 60% of sales come from independent sellers (2025). Many can offer the same product; Amazon features the offer you're most likely to buy.
Many sellers can offer the same product, each with its own price, shipping fee, delivery promise and returns policy. More than 60% of the sales in Amazon's store come from independent sellers (2025).
DynamoDB served 59 trillion+ requests over the four days of Prime Day 2026. Roughly how many is that per day?
Pick one — or just keep scrolling, it's not graded.
Keep going — it's free
Create your free account to unlock the rest of Amazon's system design, keep your progress and pick up right where you left off.
- 2Cart & Dynamo
- 3Orders & delivery
Ask anything about this system, or share how you'd design it.
Log in to join the conversation