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
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

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
Road graph
Contraction hierarchies
Customizable route planning
Live traffic
Time-dependent weights
ETA accuracy
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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...


Submit Your Answer
Markdown supported