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 27 min to read

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

Design Nearby Friends, in the interview

Geospatial Index & Places
Geospatial Index & Places · Open board

. It shows the world cut into cells, so “what is near me” becomes one cell and its neighbours. Here you will see why this design does not need that grid.

Before you start. Three lessons are borrowed. Design the Whole Thing (the interview, assembled) gave you the steps of a design answer: ask, estimate, API, data, design, bottlenecks, with nothing on the whiteboard until a number pays for it. What is near me (geohash cells, and fences by ray casting) taught cells, the lookup keyed by place, and you will use it as the thing to compare against. Design Twitter, in the interview taught fan-out, which means sending one new item to many readers, and this system is a fan-out of locations. This lesson is how to say it all in forty-five minutes.

Lesson 115 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 Saturday at the mall, and one question
  • Two lists, not one map
  • A dot that must not drain a battery
  • Sharing that can be turned off
  • A crowd in one place
  • 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: friend list, location list, join, opt-in, expires, stops cleanly, Common mistakes, User, Friendship, Sharing setting, Location, time to live, channel, mid-level, senior, staff.

Review System Design