Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
Design Uber
Visual Problem Diagram

Scenario
It's Friday night and you tap Request a ride, expecting the app to find one free driver who can reach you soon even though drivers keep moving through the city. The painful failure is when the wait looks like three minutes and then jumps to twelve, because the app was still using an old location for that driver.
Clarify this problem here, or open Pathway Coach if you want a prep plan first.
Design a ride-sharing platform like Uber that connects riders with nearby available drivers in real time. When someone requests a trip, the system should find a free driver who can arrive soon, keep that driver's location honest on the map so the ETA stays believable, and carry the ride from request through pickup to completion so neither the rider nor the driver is left guessing about the status.
You should support ride booking with pickup and drop-off, matching to nearby available drivers, live tracking with an estimated arrival time, ride status through the trip, and fare calculation that can include distance, time, and surge when demand is high. Payment and ratings after the ride can stay thin. Be ready to explain how you find nearby drivers without checking every driver in the city, how you handle a huge stream of location updates without slowing matching, how only one driver wins when two tap Accept, and what the rider sees when no one is nearby. State your tradeoffs clearly.
Constraints
Request a ride with a pickup and a drop-off. Match a nearby free driver. Show that driver moving on the map. Quote a fare from distance, time, and extra demand, then charge it. Move the trip from requested, to matched, to on the trip, to done or cancelled. Payment and ratings after the ride can stay thin.
Most match offers arrive in under 5 seconds. The request, match, and tracking path stays up about 99.99% of the time. The location used for the arrival time is no more than 3 to 5 seconds old. Sending the same request or Accept twice does not create a second ride. A failure in one city does not take the others down.
100 million registered users, 10 million of them daily. About 20 million rides a day, peaking around 500 ride requests a second. About 250,000 driver location updates a second. That location stream is the heavy write, and most matches pile up in busy neighborhoods.
Stages ahead
Not ready to design yet?
Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.
Log in to start practicing
Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.
Want full access now? View Pro pricing