Problem Statement: A Live Routing Engine, Not a Static Map
Frames the route planner as five cooperating planes: static graph, live traffic, routing engine, serving, and trip session.
Problem statement
Design a route planner comparable to Google Maps that ingests map data (road geometry, speed limits, one-way rules, turn restrictions), layers live and historical traffic on top, computes the fastest driving route between two points, supports public transit and multi-stop journeys, and re-routes a moving user in real time when conditions change. The system must answer three fundamentally different questions with one coherent architecture: what is the best route right now, how long will it take at the moment of arrival, and what should this specific driver do in the next ten seconds.
This is not a CRUD application with a graph library bolted on. A route query touches a graph with hundreds of millions of edges, must return in hundreds of milliseconds at tens of thousands of queries per second, and its answer changes every few minutes as traffic moves. The classic shortest-path algorithm is the easy part; the engineering is in preprocessing that makes queries millisecond-fast, a traffic layer that makes them correct, and a serving layer that makes them cheap.
Why the problem is distinctive
A web backend retries a slow query. A driver approaching an interchange cannot retry a stale route. The design therefore separates the static world from the dynamic world. The road graph changes slowly: new roads, closures, and turn restrictions arrive in versioned map releases. Edge travel times change constantly: congestion, weather, events, and incidents shift speeds every few minutes. The strongest architectures in the industry exploit exactly this split. Microsoft Research's Customizable Route Planning, which powered Bing Maps, preprocesses graph topology once and recustomizes edge weights in seconds when traffic changes, while Contraction Hierarchies as implemented in OSRM push continental-scale queries into the millisecond range. Google's public materials describe ETA improvements built with DeepMind graph neural networks over a supersegment graph, reducing inaccurate ETA predictions significantly in dense cities.
Public operating baseline versus design assumptions
Public evidence establishes the category scale. Google has reported more than one billion monthly active users for Google Maps, and its DeepMind partnership blog describes ETA accuracy gains from graph neural networks over a supersegment representation. OpenStreetMap publishes a planet file containing on the order of ten billion nodes, distributed as a compressed PBF extract of tens of gigabytes. These are cited public figures for context, not targets for our fictional system.
For capacity planning, this answer assumes a mature global service with 60 million daily active users, 480 million route requests per day, a four-times peak multiplier, 8 million concurrent navigation sessions at peak, and 1.6 million probe updates per second. Every uncited number in this answer is an explicit design assumption, budget, or target.
The five architectural planes
- Map data plane: road graph construction, versioning, and distribution. Nodes are intersections and shape points; edges are directed road segments with attributes.
- Traffic plane: probe ingestion, per-edge speed profiles, incident feeds, and time-dependent weights.
- Preprocessing plane: contraction hierarchies or customizable overlays that turn a raw graph into a millisecond-queryable structure.
- Serving plane: geocoding, map matching, route query execution, ETA models, alternatives, tiles, and API.
- Trip session plane: active navigation state, deviation detection, reroute triggers, and progress projection.
A strong interview answer keeps these planes separate. The serving plane degrades to historical speeds when the traffic plane lags. The preprocessing plane recustomizes without rebuilding topology. The trip session plane keeps working when the API is slow. Nothing in the chain blocks a driver on a non-critical dependency.
Key Highlights
- •Route quality depends on three clocks: static topology (days), traffic weights (minutes), and the driver's position (seconds).
- •Preprocessing topology once and recustomizing weights cheaply is the core trick behind millisecond routing at traffic speed.
- •Google reports 1B+ Maps MAU and DeepMind GNN-based ETA gains; OSM publishes a planet file with ~10B nodes as public context.
- •Assumed scale: 60M DAU, 480M route requests/day, 22K QPS peak, 8M concurrent nav sessions, 1.6M probes/s.
- •Five planes: map data, traffic, preprocessing, serving, trip session; each degrades independently.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "Let me separate the static road graph from the dynamic traffic layer before choosing any algorithm."
- "I will treat routing as three clocks: topology in days, weights in minutes, and position in seconds."