System Design
20. System Design Case StudiesAnimated
Ride-Hailing Platform (Uber)
Match riders with nearby drivers in real time.
The idea
Drivers stream locations into a geospatial index; matching picks nearby drivers.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Drivers stream their location every few seconds.
- step:
- 1/4
- at:
- Driver app
1/11
The green dot is a request moving through the system.
Step by step
- 1Drivers send locations
- 2Index by geohash or cell
- 3Rider requests a ride
- 4Match and track the trip
Where it is used
Location-based systems.
Watch out for
Hot cities and fast-moving location updates.