Object-oriented design interview questionMedium

Design a Movie Ticket Seat Booking System

Design a multi-theater ticket booking system where users search movies/showtimes, hold specific seats from a shared seat map, and confirm the hold before it expires, with correctness under concurrent booking attempts.

1. Problem Statement

Design a movie ticket booking system: users search movies and browse theaters/showtimes, pick specific seats from a shared seat map for a showtime, and book one or more seats in a single reservation. Booking has two steps: the user holds the chosen seats, then confirms the hold; a hold not confirmed within 10 minutes expires and frees its seats. If two users attempt to hold the same seat at the same time, exactly one must succeed. Users can also cancel a reservation.

2. Live Coding Format

Work in the provided coding workspace while explaining your decisions to the live interviewer. Validation may use inline tests, examples, comments, or a verbal walkthrough.

3. Key Focus Areas

  • 1
    Theater/Screen/Showtime/Seat/Reservation entity modeling
  • 2
    Concurrency-safe seat booking (exactly one winner)
  • 3
    Seat-hold vs. confirmed-booking state
  • 4
    Cancellation and seat release

4. What Strong Candidates Should Demonstrate

  • Model theaters/screens/showtimes/seats/reservations with clear ownership boundaries.
  • Guarantee exactly-one-winner semantics for contested seat bookings.
  • Keep seat-map reads simple while seat holds stay correct under contention.
  • Handle hold expiry and cancellation cleanly by releasing held/booked seats back to availability.

Want interactive feedback?

Practice this problem in the live coding workspace while the interviewer probes your clarification, implementation, trade-offs, and validation.

Continue to Dashboard

Core Concepts

Hidden because they name the technique, which a real interviewer would not tell you.

Show core concepts
Object-Oriented DesignConcurrencyReservation Systems

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design an Online Shopping System

Design an online shopping domain model covering the product catalog, SKU inventory, shopping cart, order lines with snapshotted prices, a checkout flow, a payment boundary, and shipment state transitions.

Related Object-Oriented Design

Design a Multi-Floor Parking Lot

Design a parking lot that assigns compatible spots across multiple floors, issues tickets, tracks capacity, and calculates payment when vehicles exit.

Related Object-Oriented Design

Design a Professional Networking Platform

Design a professional networking domain model covering members and profiles (experience/education), connection requests and undirected connections, and posts with comments and reactions, enforcing symmetric connections, no self-connection, unique pending requests, and profile-edit authorization.

Related Object-Oriented Design

Design a Question and Answer Platform

Design a Q&A platform domain model with users, questions, answers, comments, tags, votes, an accepted-answer rule, and a reputation policy, with the voting, acceptance, and reputation invariants enforced in the model.