⌘K
Flycodx

Design a Ticket Booking System

Design a Ticket Booking System

MediumSystem Design0% accepted

BookMyShow handles millions of concurrent seat booking requests for cricket matches. Design the system handling seat locking, payment, and overbooking prevention.

Approach

Design concurrent seat booking with temporary seat locks and payment flow.

Input

10K users try to book last seat simultaneously

Output

Redis SETNX on seat_id; only one succeeds; others get seat unavailable

Scenarios & Expected Answers

Sign in to continue

Create a free account to view answers and mark progress.

  • Free forever — no credit card
  • Theory Q&A with detailed answers
  • Points, streaks & leaderboards
Auto Save On