Continue where you left off ×
Zomato, the case study
Everything · Open board
The whole set on one board. Every scene in this lesson is drawn somewhere in it.
Boards
Before you start. You should already have a picture of a two-sided marketplace app in your head: a customer requesting something, one nearby provider, a system matching them by location. This lesson adds a third side, a kitchen, whose finishing time nobody controls, and that one difference reshapes almost everything else in this set.
The idea in 30 seconds
Zomato’s hard problem isn’t finding a rider, it’s timing one to a kitchen’s own finishing time,prep time : instead of to when the order was placed.
The one fact in the whole system nobody predicts is a human tapping “food is ready” on a tablet: ground truth , the signal every prediction is trained against and corrected by.
Deliberately waiting, then sending one rider to two nearby orders at once,batching : buys far more in extra deliveries than it costs the second customer in minutes, up to a cap.
Splitting a city into self-contained zones stops a rush in one part of town from starving the rest of it.
Search, live tracking and the money split all either feed the timing decision above or run downstream of it, none of them is really a separate problem.
Read the story
Lesson 112 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson 2008: a drawer of paper menus at a consulting firm in Delhi 2015: Zomato starts delivering, and inherits a clock nobody owns The number nobody could see: prep time, and the tap that makes it honest: ground truth Waiting on purpose, and the two-kitchen trick: batching A city cut into pieces: zone The one order the whole set traces The boards, one at a time The numbers, worked Terms it explains: prep time, ground truth, Batching, zone, zones, third active party, big searchable catalog, orders (state), restaurants and menus, users and addresses, rider locations, serviceable set, and, freshness, guarded event, preparing → ready, timeouts, idempotent transitions, optimistic concurrency, early, late.
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.