Step 1: Requirements
Requirements
Questions to Ask
- Multi-cinema or single cinema? (Multi-cinema chain)
- Seat selection — assigned or first-come? (Assigned seat selection on a map)
- Concurrent booking for the same seat? (Must handle — pessimistic locking)
- Pricing tiers? (Yes — standard, premium, VIP, child/senior discounts)
- Cancellation and refund? (Yes, up to 2 hours before showtime)
- 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