7
Back to Problem Dungeon

Movie Ticket Booking

medium

Step 1: Requirements

Requirements

Questions to Ask

  1. Multi-cinema or single cinema? (Multi-cinema chain)
  2. Seat selection — assigned or first-come? (Assigned seat selection on a map)
  3. Concurrent booking for the same seat? (Must handle — pessimistic locking)
  4. Pricing tiers? (Yes — standard, premium, VIP, child/senior discounts)
  5. Cancellation and refund? (Yes, up to 2 hours before showtime)
  6. Multiple shows per screen? (Yes — time slots)

Functional Requirements

  • List movies, cinemas, shows (date + time + screen)
  • Display seat map with availability
  • Select seats and hold them temporarily (5 min)
  • Confirm booking and generate ticket
  • Cancel booking with refund rules
  • Pricing varies by seat tier and user type

Non-Functional Requirements

  • Seat lock must be atomic (no double-booking)
  • Seat hold expires after 5 minutes
  • Booking confirmation must be idempotent

1 / 7 — Requirements