Skip to main content

Ride Sharing (Uber)

Difficulty: Hard

What It Tests

Real-time geo matching, driver tracking, dynamic pricing, trip management.

Topics Covered

Hello Interview Breakdown

Read the full Hello Interview breakdown →

Video Walkthroughs

Approach Hints

  • Drivers publish location updates every 4 seconds via WebSocket, store driver locations in Redis geospatial index (GEORADIUS)
  • Use geohash to find nearby idle drivers
  • Match rider request to closest driver with a distributed lock to prevent double-assignment
  • Surge pricing computed via stream processing (supply/demand ratio per geohash cell)