advancedAPI Design, Performance & Resilience
Two users try to book the last available seat at the exact same moment. How do you prevent double booking?
Tests whether you can pick correctly between optimistic locking, pessimistic locking, or an atomic decrement for this exact scenario.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
Two users try to book the last available seat at the exact same moment. How do you prevent double booking?