Loading page…
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.
Fifty people tap the same two seats for the Friday night show.