Discussion

Ask HN: How does Booking.com guarantee consistency of reservations on scale?

I have been wondering consistency guarantees at scale, specially with a massive number of concurrent users.

It seems that Booking.com mainly uses MySQL for most product features and use-cases and I am wondering how do they ensure that a listing is not booked by multiple users? Is the reservation system a single service with it's own storage and they run serializable transactions on it? Or do they utilize other means of distributed transactions, such as: distributed locking, 2PC, 3PC or Sagas?

58 points _null_pointer_ 3 years ago 33 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton