Skip to the guide

Design ride hailing (like Uber)

AdvancedCase study12 pages

A rider taps "request", a driver a few streets away gets an offer, and both watch each other move on a map until the pickup. It's hailing a taxi from your sofa, with every taxi in the city in view.

It's also asked as "design Uber" or "design Lyft". The closest case studies are Food delivery, which adds a restaurant and a waiting meal, and Nearby places, whose places stay put. Interviewers like it because the write rate is huge and easy to miscount, one driver must never get two rides, and losing a zone at peak tests every number.

Below is a full mock interview following the seven steps of the framework. You're the candidate: at each Guess before you read on, stop and answer first.

Step 1 · Clarify the features and cut the scope

Minutes 0–5 · How this step works

Interviewer: Design a ride-hailing app like Uber.

You: A few questions first. Does the rider see a price before she requests?

Interviewer: Yes, an upfront price and a pickup time.

You: Does she see nearby cars before requesting, and her driver approaching after?

Interviewer: Both.

You: Can drivers decline? And do we match one rider to one driver, or share rides too?

Interviewer: Drivers can decline or ignore an offer. One rider per car for now.

You: And payment at the end, through a provider?

Interviewer: Yes, but keep it light.

You: Then I'll cover quotes, requests, matching, live locations and the trip from pickup to drop-off. Out: shared rides, scheduled rides, ratings and driver onboarding. OK?

Interviewer: Good.

Each answer shapes the design: a quote needs an ETA and a price before the request, drivers who decline need offers that expire, and the approaching car means pushing positions to a rider.

Step 2 · Non-functional requirements

Minutes 5–8 · How this step works

You: Say 5 million drivers online at peak, each sending a position every 4 seconds. Matching makes the first offer within a second of the request at p99, and a position reaches the rider's map within about 5 seconds. Requesting and trips are 99.99% available. One driver never holds two rides, and a trip is never lost once accepted. Positions are soft state: one that's lost is replaced 4 seconds later.