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 28 · System Design · Uber · about 32 min to read

Watch: Geospatial indexing: how do you find the drivers near a rider?
▶ VideoPlay it as a journeyTutor comes with a plan

Uber, the case study

Everything
Everything · Open board

The whole set on one board. This lesson tells the story of the one question the whole system exists to answer, and by the end you’ll know the handful of tricks that make answering it, a million times a second, possible.

Boards

Before you start. You need to already be comfortable with the idea that a system can be forced to choose between always answering and always being right the moment a network breaks, and that splitting a huge pile of data across many machines by some key is what makes a big system fast at all. Nothing else is assumed, every other idea here is shown working before it’s named.

Lesson 106 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

  • 2008: a cold Paris night, and a cab that never came
  • 2010: San Francisco, and the question every ride starts with
  • The count that breaks the question
  • The trick: chop the map into tiles
  • Two dispatchers reaching for the same car
  • December 2013: a snowstorm, a $415 receipt, and a price nobody could explain
  • A ride that has to survive its own phone call
  • The charge that couldn’t tell if it already happened
  • One system, run as many small ones
  • Location Firehose & Geo-Index, the tile trick, by its real names
  • Dispatch & Matching, batching beats greedy, measured
  • Surge Pricing, a control loop, by the numbers
  • The Trip State Machine, the guards that keep it correct
  • Payments & Money, exactly-once, without exactly-once delivery
  • Maps, Routing & ETA, the map that updates itself
  • Scale, Cells & Data Platform, running it everywhere without going fully dark

Terms it explains: cell, reservation, state machine, idempotency key, ledger, S2, H3, hexagons, shard key, Hungarian algorithm, DISCO, Cadence, Temporal, Contraction hierarchies, A\, DeepETA, Schemaless, Cassandra, Redis, Ringpop, ;, (consistent hashing);, (a datastore on MySQL);, /, (the workflow engine);, S2 Geometry.

Review System Design