Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
Amazon System Design
Visual Problem Diagram

Scenario
It's Black Friday and you refresh a page that says one unit is left, expecting checkout to sell you that unit or tell you it is gone. The painful failure is when two shoppers both receive an order for that last unit, because both checkouts read "one left" before either one reduced the count.
Clarify this problem here, or open Pathway Coach if you want a prep plan first.
A shopper searches the catalog and opens a product. They add it to a cart. The cart is still there when they open the site on another device. They place an order. The number of units in stock goes down. They can read and write a review.
You need to explain how search finds one product in a large catalog. You need to explain how the cart survives a second device and a login. You need to explain how only one shopper gets the last unit. You need to explain what the shopper sees if the card is declined after the stock count already dropped. Home-page suggestions can stay thin.
Constraints
Shoppers can search the catalog and open a product. They can keep a cart. They can place an order that lowers the stock count and does not sell one unit twice. They can read and write reviews. The home page can suggest other products.
Most browse and search pages finish in under 200 milliseconds. Checkout stays up about 99.99% of the time. The stock count used for a purchase is exact. Sending the same order twice does not create two orders.
About 300 million registered users and 100 million people using it in a day. About 100 million products. About 50 million orders a day, peaking around 600 orders a second. About 2 billion product views a day, which is the heavy read. Tens of millions of carts are active.
Stages ahead
Not ready to design yet?
Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.
Log in to start practicing
Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.
Want full access now? View Pro pricing