KatInterview

Design a High-Concurrency Concert Seat Reservation Platform

System DesignModel answer
MediumModel answerSystem Designhigh-concurrencyinventory-managementdistributed-systems

Last updated

Design a ticket booking system that handles millions of simultaneous users competing for limited inventory while preventing double-bookings and race conditions.

Problem Statement

You need to design an online seat reservation platform for live events like concerts and sports games. The system faces extreme load during ticket releases when demand vastly exceeds supply.

What the System Must Do

Core Features:

  1. Display real-time seat availability for specific events
  2. Allow users to temporarily reserve selected seats
  3. Complete payment processing and finalize bookings
  4. Automatically release unpaid reservations after a timeout window (10 minutes)

Critical Requirements:

Correctness: The system must never allow two customers to purchase the same seat. This is non-negotiable.

Responsiveness: Users should experience reasonable response times even when traffic surges by 100x during popular releases.

Performance: Read operations (browsing seats) happen much more frequently than writes (actual purchases).

Scale Parameters

  • Peak concurrent users: 1,000,000 during a major release
  • Typical event capacity: 50,000 seats
  • Read-to-write ratio: approximately 100:1
  • Hold duration: 10 minutes before automatic release

What You Need to Provide

  1. API Design: Define the key endpoints users and internal services will call
  2. Data Architecture: Choose appropriate storage technologies and schema design
  3. Consistency Strategy: Explain how you prevent race conditions and ensure exactly-once semantics
  4. Traffic Management: Describe your approach to handling extreme load spikes without system collapse
  5. Trade-offs: Discuss the choices you made and alternatives you considered

Think about both the happy path and failure scenarios. How does your design behave when the payment provider is slow? What happens if a user's session dies mid-checkout?

Hints

Hint 1

The core challenge is managing contention, not storage capacity—thousands of users competing for the same seats

Hint 2

Consider separating the read path (viewing availability) from the write path (making reservations) with different scaling strategies

Hint 3

Temporary holds create a state machine problem: available → held → purchased, with time-based transitions

Hint 4

A waiting room or admission control layer can transform an overwhelming spike into a manageable stream