By the last page, this is the design you will have built.
Lesson · 13 pages · about 12 min
Design Uber
Finding the nearest drivers for millions of riders: a location index, a quadtree that keeps downtown searches cheap, live locations in memory, and one driver locked per ride.