Design Inventory Reservation for a Gold Box Flash Deal
Last updated: November 29, 2026
Quick Overview
Design the service that sells a limited quantity deal (for example 5,000 units at 60% off, opening at 9 a.m.) to hundreds of thousands of concurrent shoppers without overselling, while keeping normal checkout fast.
Coupang
November 29, 20260
0
0 solved
Design the service that sells a limited quantity deal (for example 5,000 units at 60% off, opening at 9 a.m.) to hundreds of thousands of concurrent shoppers without overselling, while keeping normal checkout fast.
Coupang runs time-boxed deals where traffic spikes by orders of magnitude at the opening minute, and overselling means cancelling orders on customers who were promised Rocket Delivery. The round checks hot-key contention handling, reservation lifecycles, and graceful degradation.
What the Interviewer Expects
- Separate the hot deal counter from the general inventory system
- Atomic decrement of a sharded or pre-split counter instead of row locks on one SKU
- Reservation with TTL that converts to a sale on payment or is released
- Admission control or a queue at the front door to shed load fairly
- Reconciliation between the fast counter and the inventory ledger of record
- Clear behaviour under cache node failure (never oversell, may undersell briefly)
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you stop bots from taking the whole allocation?
- How do you allocate units across fulfillment centers so every sale is shippable tomorrow?
- What happens if the counter store loses its primary mid-sale?
- How would you show a truthful 'remaining' count without hammering the counter?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: show the deal, let a shopper reserve units (per-user limit, say 2), hold them for 10 minutes through payment, then confirm or release. Non-functional: never sell more than the allocation, ...
High-Level Design
Path: CDN-cached deal page, then an admission gateway (rate limit per user and device, a virtual waiting room token when load exceeds a threshold), then the Deal Reservation Service. Before the sale, ...