Booking.com: Holiday Search Surge
Hard · system design problem
Holiday deals go live: searches ×5. The search index, the search tier’s threads and the availability database’s connections all run out — each for a different reason.
Every search queries Elasticsearch (3 shards, 1 replica) for matching hotels and checks live availability in Aurora. search-api autoscales on CPU (20 Aurora connections per instance, 50 threads); booking-api handles bookings on the same Aurora cluster (400 connections). At T+20s the holiday deals go live: searches ×5 for the rest of the hour, and at T+40s bookings ×3.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.