Free preview

What a Map Service Does

In one line: this is the first design in the course where the hard part is an algorithm, not storage or bandwidth. Everything else has been about moving bytes; this is about computing a path.

Where it gets used

Use caseDetail
Finding locations and directionsUsers can quickly locate new places, saving time and fuel costs
Real-time navigationUsers check their ETA and find the shortest path based on current traffic
Third-party integrationWaymo uses maps for autonomous vehicle navigation; Uber uses them to route drivers and visualize journeys
Logistics and deliveryReal-time and historical traffic data to optimize routes, reducing delivery times and operational costs

Over five million businesses use the Google Maps API to integrate mapping systems into their applications.

Third-party integration changes the traffic profile completely

It is tempting to read the Waymo and Uber examples as product colour. They are a load characteristic, and Lesson 2 lists them explicitly in the scalability requirement — "high request volumes from individual users and enterprise integrations (e.g. Uber and Lyft)."

A human opens Maps a few times a day. Uber queries continuously — every driver's position, every rider's ETA, every route recalculation, for every trip in progress worldwide. An autonomous vehicle queries constantly by definition.

So a large share of traffic comes from machines, not people, and machine traffic has different properties: it is steady rather than bursty, latency-sensitive in a harder way (a car cannot wait), and it does not go to sleep at night.

That is why five million businesses on the API is the most load-relevant sentence in the lesson. It also means the 32 million daily active users in Lesson 3 undercounts the real query volume substantially — a point worth raising when the estimate looks small.

Notice what this system is not — it is not a bandwidth problem

The last three chapters were about moving bytes: YouTube at 12 Tbps, Quora at 226 Gbps, both read-dominated with delivery as the hard part.

Maps is different. Lesson 3 lands at 297 Gbps — comparable to Quora — and the data is largely static: over 20 PB of road data that barely changes day to day.

So neither storage growth nor bandwidth is the challenge. The challenge is stated plainly in Lesson 2: a graph with billions of vertices, and a shortest-path query that must return in two to three seconds.

That makes this the course's first genuinely algorithmic system design. The building blocks are familiar — load balancers, key-value stores, pub-sub — but the interesting work is partitioning a graph and precomputing paths, which none of the previous chapters needed.

The chapter's shape

Lesson groupCovers
RequirementsFunctional and non-functional requirements, the design challenges, and resource estimation
DesignHigh-level architecture, API design, system services, and workflow
Meeting the challengesStrategies to overcome the challenges identified in the requirements phase
Detailed designStorage schema and specific component details
EvaluationHow the final design meets the initial requirements

A whole lesson group named 'meeting the challenges' is unusual and tells you where the difficulty is

Most design chapters go requirements → design → evaluation. This one inserts a dedicated stage for solving two named problems: scalability and ETA computation.

That structure is a signal. The architecture — load balancers, services, databases — is not the hard part and does not need much defending. The hard part is:

  • Scalability: running shortest-path over a global graph fast enough.
  • ETA accuracy: predicting travel time when it depends on traffic, weather, and construction rather than distance.

Both are genuinely difficult, and neither is solved by adding servers. That is worth recognizing in an interview — when the difficulty is algorithmic, drawing more boxes does not help, and the answer has to be about preprocessing, partitioning, and approximation.

The four building blocks the design asks you to identify

The chapter opens with an exercise: name four building blocks, given that the system needs to search locations, store key-value metadata, generate and handle events, and store road data as a graph.

The intended answers, confirmed by Lesson 3's list:

  • Distributed search — searching locations on the map.
  • Key-value store — segment metadata.
  • Pub-sub — navigation events and location streams.
  • Databases — specifically a graph database for the road network.

Plus load balancers, which every design uses.

Worth doing before reading ahead. The mapping from "structured graph format for storing and retrieving road data" to graph database is the one people miss, and it is the choice that most shapes this design.

Key takeaway

Three questions — best route, distance, ETA — answered over a road network modelled as a graph. Unlike the previous chapters this is not a bandwidth or storage problem: the data is largely static, and the difficulty is running shortest-path over billions of vertices in two to three seconds. And a large share of the load comes from machines — Uber, Waymo, five million API integrations — not from people opening an app.

Interview signal by level

LevelWhat a strong answer sounds like
L4"Users enter a source and destination and we return the best route with an ETA."
L5Identifies the shape: "the road network is a graph — intersections as vertices, roads as weighted edges — so routing is a shortest-path problem, and the data is mostly static."
Staff+Names why this is different: "unlike a video or Q&A platform, this isn't a bandwidth or storage problem — the data barely changes. It's algorithmic: shortest path over billions of vertices in two to three seconds, which adding servers doesn't solve. And a lot of the load is machine traffic from ride-hailing and autonomous vehicles rather than humans opening an app, which is steady rather than bursty and can't tolerate latency the way a person can."

Next: the requirements and the two hard problems.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue