Swiggy
- Deep dive
- Distributed systems
- Performance
- Latency & performance
Designing the Serviceability Platform at Swiggy for High Scale — Part 1
Answers How does Swiggy decide in milliseconds who can deliver to you?
Every listing, search and checkout at Swiggy first asks whether a restaurant or store can deliver to you. At 100,000 app visits a minute that is about 200 million evaluations a minute, with a p99 under 200ms.
- The problem
- Swiggy must check about 200 million restaurant-to-customer pairs a minute at peak, with p99 under 200ms.
- What they did
- GeoHash-indexed point-in-polygon search over in-memory caches, replicated to scale horizontally.
- The result
- A pre-order check fast and fault-tolerant enough to sit in front of every listing and checkout.
Why read it If this one service fails, Swiggy cannot take orders, so it has to be both fast and resilient.