Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 32 · System Design · Designs on a map · about 32 min to read

Watch: Coffee near me: how a map finds the places near you
▶ VideoTutor comes with a plan

Design Strava, in the interview

Geospatial Index & Places
Geospatial Index & Places · Open board

It shows the map cut into cells. So “which segments are here” becomes a lookup of one cell and its neighbours, not a search of every segment.

Before you start. Three lessons are borrowed. What is near me (geohash cells, and fences by ray casting) built the grid of cells from scratch: how a place becomes a cell, and why a point near the edge of a cell needs the neighbouring cells too. This lesson uses that grid to find segments. Design Twitter, in the interview showed the feed for an account with millions of followers: write into each follower’s list, except for the biggest accounts. Charged Twice (idempotency & exactly-once) gave you the idempotency key, the label that makes a repeated request safe. This lesson is how to say it all in forty-five minutes.

Lesson 114 of 115 in System Design

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • A hill with no signal, and one question
  • Why the points go in a file, not in rows
  • Which segments did this activity cross?
  • The board that must stay right
  • What other people are shown: the feed and the home
  • Requirements
  • Out of scope, said out loud
  • Targets
  • Estimates that change the design
  • Entities and API
  • Storage
  • The design, one requirement at a time
  • Deep dives
  • What each level adds
  • The follow-up
  • More follow-ups
  • How to say it in the round

Terms it explains: Activity, Segment, leaderboard, KOM, QOM, GPS point, candidates, Effort, feed, Privacy zone, Common mistakes, split, p99, Athlete, Follow, activity id, mid-level, senior, staff.

Review System Design