
Mobility · complexity 4/5
Ride matching
How a ride-hailing app finds the right nearby driver in seconds — from one SQL query in one city to in-memory hexagon cells, batched matching and trips that survive the loss of a region, with Uber's published H3 and engineering posts as the documented examples
A rider taps once and expects a car within seconds. See how positions, cells, ETAs, live connections and careful state changes find the right driver, promise them to one rider only, and survive a lost region.
- Geospatial index
- Hexagonal cells (H3)
- Ring-by-ring search
- Locations in memory
- Batched matching by ETA
- Push over persistent connections
- Shard by city and cell
- Surge per cell
- Compare-and-set on trip state
- Idempotent accept
- Region failover