Interview practice question
Flash sale inventory
System Design · Design: Commerce and Media · Intermediate
An e-commerce site runs a flash sale with 1,000 phones at a huge discount. How do you handle the inventory decrements?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Single hot row is a bottleneck.
- Redis atomic counter as gate.
- Pre-split stock into buckets.
- Queue order creation.
- Reconcile with DB.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.