Two people press Book for the last place. Make the capacity decision atomic, hold places with an expiry, recognize retries and tell each person what happened.
#Bookings
Blog
2 articles
Two people press Book for the last place. Make the capacity decision atomic, hold places with an expiry, recognize retries and tell each person what happened.
Two people book the last place at once. How optimistic concurrency, locking and idempotency stop a booking system from confirming both.
Like what you’re reading? Let’s put it to work on your brand.