Skip to the guide

Design ticket booking (like Ticketmaster or BookMyShow)

IntermediateCase study12 pages

Fans pick seats for a concert or a film, hold them while they pay, and get tickets. On most days that's easy, but a few times a month a band goes on sale and millions arrive in the same minute for 60,000 seats. Think of a box office with one seating plan and a queue round the block.

It's also asked as "design Ticketmaster", "design BookMyShow" or "design a movie booking system". The closest case study is Flash sale, where every item is identical instead of a seat someone chose. Interviewers like it because one seat must have one winner, a hold is a promise with a timer, and the crowd is bigger than any database. This page continues the concert from the framework pages and from Contention and Holds and waiting rooms.

Below is a full mock interview following the seven steps of the framework. You're the candidate: at each Guess before you read on, stop and answer first.

Step 1 · Clarify the features and cut the scope

Minutes 0–5 · How this step works

Interviewer: Design a ticket booking site like Ticketmaster.

You: Do fans choose seats on a map, or does the system pick them?

Interviewer: Both. A map, or "best available" in a price band.

You: Concerts only, or films and everyday events too?

Interviewer: Both. Cinemas every day, and a few huge on-sales a month. Some concerts have a standing pit.

You: How long may a fan hold seats while she pays, and how big is the biggest on-sale?

Interviewer: Ten minutes. Ten million fans for a 60,000-seat stadium.

You: Then I'll cover events, the seat map, holds, payment through a provider, tickets, and a waiting room for the big on-sales. Out: event search, resale, pricing and venue setup tools. OK?

Interviewer: Go on.

Each answer shapes the design: chosen seats make each seat contended, best available lets the server pick, the timer goes in the seat's row, and ten million fans for 60,000 seats need a line.

Step 2 · Non-functional requirements

Minutes 5–8 · How this step works

You: Everyday traffic is ~5 million tickets a day. A typical on-sale brings 2 million fans and the biggest 10 million. A hold answers within 1 second at p99, and the seat map loads within 200 ms at p99 from the edge, a few seconds old when fetched. Browsing is 99.99% available, holds and payments 99.9%. A seat is never sold twice, a fan never pays for a seat she doesn't get, and a paid ticket is never lost.