Design Live Traffic Ingestion and ETA Prediction for Google Maps
Last updated: November 29, 2026
Quick Overview
Design the backend that ingests location pings from millions of phones, turns them into live road speeds, and returns ETAs for routes in Google Maps.
0
0
0 solved
Design the backend that ingests location pings from millions of phones, turns them into live road speeds, and returns ETAs for routes in Google Maps.
Maps is one of Google's highest-traffic products, and this question tests geospatial stream processing plus a latency-sensitive read path. Interviewers check map matching, aggregation per road segment, privacy handling, and how fresh speeds feed routing.
What the Interviewer Expects
- Map-matches noisy GPS to road segments
- Aggregates speeds per segment over sliding windows
- Blends live speeds with historical profiles
- Explains how routing consumes speeds quickly
- Addresses privacy and anonymization
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 do you handle a road with very few probes at night?
- How do you detect a sudden closure faster than averages show?
- How would you predict ETA for a trip starting in an hour?
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: ingest anonymized location pings (lat, lng, speed, heading, timestamp) from opted-in devices; compute current speed per road segment; answer route ETA queries for current and near-futu...
High-Level Design
- Ingest gateway strips identity, assigns rotating trip tokens, and publishes pings to a log partitioned by geographic cell (S2 cell at a level covering a few km).
- Map-matching workers...