MediumScenarioMore designs and operations
Design a coupon and discount engine that prevents double redemption.
What a good answer covers
Atomic conditional update or unique constraint per user and coupon, reservation with TTL during checkout, rules evaluated server-side, and audit of redemptions.
PreviousDesign an OTP service for login that handles 50k SMS per second during peak.Next Design a seat booking system for a cinema chain with concurrent users picking the same seat.
More on More designs and operations
Flashcards for this topic- HardDesign a bill-payment aggregator like BBPS that talks to hundreds of biller systems of varying reliability.
- HardDesign an OTP service for login that handles 50k SMS per second during peak.
- HardDesign a seat booking system for a cinema chain with concurrent users picking the same seat.
- HardDesign a fraud detection pipeline for card payments with a 100 ms decision budget.