Skip to content
Theory · Nearby search and ride hailing · lesson 8 of 11

Matching a driver

At peak the largest city gets 25 requests a second. The first offer must reach a driver within 10 seconds, a driver thinks for 15 seconds, and after 2 minutes with no acceptance the request is canceled. This lesson is about how dispatch picks and ranks candidates, why it offers a ride to one driver at a time, and what keeps a driver from getting two rides.

In this lesson

  • Candidates and ranking
  • One offer at a time
  • The lock and the assignment
  • Greedy or in batches
  • Common mistake
  • Key points