Design Real Time Driver Dispatch For Yandex Go Taxi
Last updated: November 29, 2026
Quick Overview
Design the system that, when a rider requests a taxi, finds candidate drivers nearby, chooses an assignment that keeps both rider wait and driver idle time low across the whole city, and confirms it within seconds.
Yandex
November 29, 20260
0
0 solved
Design the system that, when a rider requests a taxi, finds candidate drivers nearby, chooses an assignment that keeps both rider wait and driver idle time low across the whole city, and confirms it within seconds.
Dispatch is the core of Yandex Go, where driver locations stream in every few seconds and a city like Moscow has tens of thousands of active cars. Senior candidates are expected to go beyond nearest-car matching to batched assignment, ETA on the road graph, and consistency of driver state.
What the Interviewer Expects
- Ingest driver GPS pings into a geo index (geohash or H3 cells) held in memory
- Use road-graph ETA, not straight-line distance, for candidate scoring
- Batch requests over a short window and solve an assignment problem
- Prevent double assignment with a driver state machine and leases
- Handle driver acceptance and rejection with timeouts and re-dispatch
- Shard by city or region and explain failover
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How long should the batching window be, and how would you decide using an experiment?
- How do you combine this with surge pricing when demand exceeds supply?
- How would you support chained orders, offering a driver a new ride before the current one ends?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: accept an order, find drivers, offer to one driver, confirm, re-dispatch on decline. Non-functional: p99 time to offer under 3 seconds, a driver is never assigned two orders, the system de...
High-Level Design
Driver app sends pings to a Location Gateway, which writes to a streaming log (Kafka style) and to an in-memory Geo Index sharded by city and H3 cell. The Order service records the request and pushes ...