~learn.
lecture · 13:55 · 4 checkpoints · browser voice

Design a movie ticket booking system

Seat holds and bookings for a cinema: why check-then-book races, an all-or-nothing hold with lazy expiry behind a lock seam, the booking life cycle, a 50-thread race for two seats, a late payment that is refunded, an idempotent confirm, and the lock-ordering deadlock to avoid.

01 · Fifty taps, two seats
LLD-05 · Design a Movie Ticket Booking System

Friday night. Two seats. Fifty people.

Fifty taps, one timer

Fifty people tap the same two seats for the Friday night show.