Design a Lightning Deal Claim System With Limited Inventory

Last updated: November 29, 2026

Quick Overview

Design the backend for time-boxed flash deals where a fixed number of discounted units (for example 5,000) go on sale at a set time and millions of customers may try to claim them in the first few seconds.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the backend for time-boxed flash deals where a fixed number of discounted units (for example 5,000) go on sale at a set time and millions of customers may try to claim them in the first few seconds.

Flash sales during Prime Day stress the hottest-key problem: one deal record receives enormous concurrent writes. Amazon interviewers use this to check whether you can avoid overselling without serializing all traffic through one database row, and whether you design a fair, honest customer experience under contention.

What the Interviewer Expects
  • Never oversell the deal quantity
  • Handle a thundering herd at deal start
  • Time-limited claims that expire back into the pool
  • Clear customer states: claimed, waitlisted, sold out
  • Separate the claim path from checkout and payment
Key Topics to Cover
Hot key contention
Inventory reservation
Token bucketing
Idempotency
Waitlists
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you add a fair waitlist when the deal sells out?
  • How do you prevent bots from claiming most units?
  • What changes if one deal spans multiple marketplaces?
  • How do you show an accurate percent-claimed bar to millions of viewers?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: customers see upcoming deals; at start time they can claim one unit, which holds it for 15 minutes to complete checkout; unpaid claims return to the pool; a waitlist absorbs demand aft...

High-Level Design
  • Deal Catalog Service: deal metadata (price, quantity, start, end), heavily cached at the edge.
  • Claim Service: stateless fleet behind a load balancer, validates eligibility and rate limits....

Submit Your Answer
Markdown supported