Design Traffic-Aware ETA and Routing for Bing Maps
Last updated: November 29, 2026
Quick Overview
Design the routing service that computes driving directions and arrival time estimates using live and historical traffic, answering millions of route requests per minute at continental scale.
Microsoft
November 29, 20260
0
0 solved
Design the routing service that computes driving directions and arrival time estimates using live and historical traffic, answering millions of route requests per minute at continental scale.
Bing Maps and Azure Maps offer routing APIs, and this is a strong onsite question for geo teams. Interviewers look for graph preprocessing (contraction hierarchies or partitioning), how live traffic changes edge weights without full reprocessing, and how ETA accuracy is measured.
What the Interviewer Expects
- Models the road network as a weighted directed graph with turn restrictions
- Uses preprocessing like contraction hierarchies or a partition-based overlay for fast queries
- Updates edge weights from live probe data without full preprocessing
- Uses time-dependent historical speed profiles for future departures
- Partitions the graph and service by region
- Measures ETA error against actual trip times
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
- Why does plain Dijkstra fail at continental scale?
- A road closes because of an accident. How quickly is that reflected?
- How would you compute ETA for a trip leaving next Monday at 8am?
- How do you serve truck routing with height limits?
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
Graph: hundreds of millions of nodes and edges for a continent. Route query p95 under 100 ms. Live traffic from GPS probes and incidents reflected within a few minutes. Support departure-time ETAs, av...
High-Level Design
Map pipeline builds the road graph from map data (edges with length, speed limit, road class, restrictions). Traffic pipeline consumes probe data (anonymized GPS from devices and partners) and...