~learn.
lecture · 13:23 · 4 checkpoints · browser voiceAdvanced

Design a Ride-Sharing Service

Riders, drivers, matching and fares: a grid of 1 km cells to find nearby drivers, a compare-and-set on the driver so a stale search can't double-book, a strict trip state machine, matching and fares as strategies with surge as a decorator fixed at request time, and 20 riders racing for 3 drivers.

01 · Outside the stadium
LLD-14 · Design a Ride-Sharing Service

Twenty taps. Three drivers.

Twenty riders, three drivers

A match ends outside a stadium, and twenty people tap book at once.