Movie Booking System
Problem Statement
Design the Low-Level Design (LLD) of a Movie Ticket Booking System, similar to platforms like BookMyShow or Paytm Movies.
The goal is to design the classes, interactions, and relationships that support searching movies, viewing showtimes, selecting seats, and booking tickets.
Focus on object modeling, seat management, and concurrent booking safety, not the large-scale architecture (databases, caching, microservices — that would be part of HLD).
🎯 Goal
Design a system that can:
✅ Functional Requirements
1. Movie and Theatre Management
2. Show and Seat Management
3. Search Functionality
4. Booking Flow
5. Payment and Ticket
6. Cancellation
⚙️ Non-Functional Requirements
🧱 Key Classes to Design
ClassResponsibility
Movie
Stores movie metadata (title, duration, language, genre).
Theatre
Represents a cinema with location and multiple screens.
Screen
Contains layout of seats and linked to multiple shows.
Show
Represents a specific screening of a movie with time, date, and seats.
Seat
Represents a seat with number, type, and booking status.
User
Represents a customer booking tickets.
Booking
Represents confirmed booking with seats, user, show, and payment details.
Payment
Handles payment processing and status.
SeatLockManager
Handles locking and releasing of seats during booking.
BookingManager
Orchestrates booking flow (search → lock → payment → confirm).
🧩 Example Class Structure (Simplified)
1
2Movie
3 ├── id
4 ├── name
5 ├── duration
6 ├── genre
7 ├── language
8
9Theatre
10 ├── name
11 ├── location
12 ├── List<Screen>
13
14Screen
15 ├── id
16 ├── name
17 ├── List<Seat>
18 ├── List<Show>
19
20Show
21 ├── id
22 ├── movie
23 ├── screen
24 ├── startTime
25 ├── List<Seat>
26 ├── priceMap (SeatType → Price)
27
28Seat
29 ├── id
30 ├── row
31 ├── number
32 ├── type (REGULAR, PREMIUM)
33 ├── status (AVAILABLE, LOCKED, BOOKED)
34
35Booking
36 ├── bookingId
37 ├── user
38 ├── show
39 ├── List<Seat>
40 ├── status (PENDING, CONFIRMED, CANCELLED)
41 ├── payment🔄 Booking Flow Example
Input:
1
2User: Sahil
3Movie: Interstellar
4Location: Mumbai
5Show: 25 Oct 2025, 7:30 PM
6Seats: A1, A2Steps:
Output:
1
2Booking ID: BK202510250123
3Movie: Interstellar
4Show: 7:30 PM, PVR Mumbai
5Seats: A1, A2
6Amount: ₹800
7Status: Confirmed🧠 Concurrency Scenario
If two users attempt to book the same seat:
🧪 Extension Ideas
✅ Summary:
Design a Movie Ticket Booking System (LLD) that allows: