The Desi Architect
Notes / Booking and Search / Design BookMyShow / IRCTC (Seat Reservation)
Track 3 · Booking and Search

Design BookMyShow / IRCTC (Seat Reservation)

One seat, two hopeful people, a payment in the middle and a clock running. How to sell every seat exactly once when a lakh of people hit Buy at 10:00 AM, and what to do when the money arrives after the hold has gone.

Interview problem30 min read
On this page
  1. Problem framing
  2. Questions I ask before drawing anything
  3. Requirements
  4. Estimation
  5. API
  6. Data model
  7. Building it up
  8. The catalog stays out of the booking path
  9. The seat map: reads that scale
  10. Not selling a seat twice
  11. The hold window
  12. Payment, and the webhook that arrives late
  13. The drop: waiting room, bots and fairness
  14. When something breaks halfway
  15. Bottlenecks, security, and what to watch
  16. Questions an interviewer will ask
  17. Interview Leveling Rubric