
Question 1New
Design a shopping cart system for an e-commerce platform similar to Shopee handling 5 million concurrent users during a flash sale. How would you handle overselling and race conditions?
Think about your answer before viewing the hint
Advanced Set

Think about your answer before viewing the hint
Answer framework
What recruiters want to hear
The interviewer wants to see layered thinking - not just solving the technical problem but understanding trade-offs. A strong answer covers: (1) Redis atomic operations (SETNX or Lua script) to keep inventory non-negative, (2) Message queue (Kafka/RabbitMQ) to decouple inventory deduction from the main request path, (3) Optimistic locking at the DB layer to avoid dirty reads, (4) Graceful degradation when Redis fails.
Bonus points for sharing real metrics from past projects or asking clarifying questions about SLA and RTO/RPO.
Discussion
Related interview experiences
Practice Progress
0
Questions reviewed
0
Polls completed
Anonymous Survey
Your answers are valuable and will help many people

Which interview round did you encounter this question?
Answer to see results
More Discussion
See more discussions or share your approach

Practice Progress
0
Questions reviewed
0
Polls completed
Anonymous Survey
Your answers are valuable and will help many people

Which interview round did you encounter this question?
Answer to see results
More Discussion
See more discussions or share your approach
