Skip to content
StackDecode
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.

Rider appDriver appGatewayLocation serviceMatching serviceTrip DB
  • 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

  1. 1Drivers send locations
  2. 2Index by geohash or cell
  3. 3Rider requests a ride
  4. 4Match and track the trip

Where it is used

Location-based systems.

Watch out for

Hot cities and fast-moving location updates.

Related