Blog

Tag: Concurrency

2 articles

Ten seats means ten seats, even when everyone books at once

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

Two customers. One last seat. Your database gets the casting vote.

Two people book the last place at once. How optimistic concurrency, locking and idempotency stop a booking system from confirming both.

#Bookings

Turn reading into results

Like what you’re reading? Let’s put it to work on your brand.