sagelearnai

Design a Ride-Sharing Service

Prompt: "Design Uber: riders request rides and nearby drivers are matched."

Ride sharing is about high-frequency location updates, geospatial queries and a matching step that must not double-book drivers, all in real time. Interviewers look for an in-memory geo index, a clean matching protocol and a trip state machine.

In this lesson

  • Learning objectives
  • 1. Requirements
  • 2. Estimates
  • 3. Core entities and API
  • 4. High-level design
  • 5. Deep dives
  • 6. Operations and cost
  • 7. What each level adds
  • Self-check

Questions covered

  1. Design Uber's matching system.
  2. Why rank by ETA instead of distance?

This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.