Design a system for booking seats for trains, movies, or events with strong seat-level consistency. High contention on popular shows requires atomic holds and short TTLs.
Functional requirements
- Browse events and available seats
- Hold seats temporarily during checkout
- Confirm booking after payment
- Support waitlists or alternate seat suggestions
Non-functional requirements
- No double booking of the same seat
- Handle flash sales with queues and rate limits
- Low-latency seat maps for interactive selection