Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Ride-Hailing & Proximity Design

Design a ride-hailing or nearby-search service that tracks moving drivers in a geospatial index, finds the nearest ones within a latency budget and dispatches each trip under an explicit single-assignment rule.

Advanced1 roadmap

3 objectives 5 steps about 105 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Estimate location-update write rate, index memory and nearby-query load for a ride-hailing service, and explain why tracking moving drivers needs a different store from searching static places.
  • Design a location service that keeps the latest driver positions in a sharded in-memory index of geospatial cells (geohash, S2 or H3) with expiry, and answers nearest-driver queries across cell boundaries and dense hot cells within a latency budget.
  • Design trip dispatch that offers each ride to one driver at a time and records the assignment with a conditional write or an expiring lease, and describe what riders and drivers see when a dispatcher, a driver app or a location shard fails.

Lesson plan

5 steps, about 105 min · 0 of 4 lessons available so far

  1. Scoping ride-hailing and estimating location traffic Worked example · 20 min · coming later
  2. Indexing moving drivers: cells, neighbors and expiry Concept · 25 min · coming later
  3. Serving nearest-driver queries from a sharded location index Worked example · 25 min · coming later
  4. Dispatch offers and the single-assignment rule Concept · 20 min · coming later
  5. Ride-hailing design check Knowledge check · 6 questions

Practise it

Simulate 100,000 drivers sending positions every 4 seconds into a cell-based index (geohash or H3), measure p99 latency of nearest-10 queries for two cell sizes and for one dense hot cell, then write a design doc for 1M active drivers covering estimates, index sharding, the dispatch state machine with its failure cases, and how long precise location history is kept and who can read it.

References

Hard prerequisites

Unlocks

Nothing depends on this skill yet.

On these roadmaps

Progress and evidence for this skill are shared across all of them.