Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Amazon System Design

Visual Problem Diagram

Amazon System Design architecture 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.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

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

Functional

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.

Non-functional

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.

Scale

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

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

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.

Try Coach free

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