Design Scheduled Ride Reservations Booked Days in Advance
Last updated: November 29, 2026
Quick Overview
Design Uber Reserve: a rider books a pickup up to 30 days ahead, gets a confirmed driver before the trip, and the system must find, hold, and dispatch that driver on time even when the marketplace changes.
Uber
November 29, 20260
0
0 solved
Design Uber Reserve: a rider books a pickup up to 30 days ahead, gets a confirmed driver before the trip, and the system must find, hold, and dispatch that driver on time even when the marketplace changes.
Scheduled rides turn Uber's real-time matching into a scheduling problem with commitments, so interviewers use it to test durable timers and job queues. They check how jobs fire reliably at the right time, how early driver matching works, and what happens when a confirmed driver drops.
What the Interviewer Expects
- Store reservations durably and trigger work with reliable delayed jobs
- Explain when matching happens (early offer to drivers versus near-time dispatch)
- Handle driver cancellation with a re-dispatch escalation path
- Manage time zones and daylight saving changes
- Keep timer firing idempotent
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you guarantee a job fires at 7:45 even if the scheduler node crashes at 7:44?
- How do you price a ride booked weeks ahead when surge is unknown?
- What is your escalation plan if no driver is assigned 15 minutes before pickup?
- How do you handle 100,000 reservations all at 6:00 am on a holiday?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Book with pickup time, location, product, and a locked upfront price. Drivers can browse and accept reservations ahead of time. The rider gets a driver confirmation before pickup and reminders. If no ...
High-Level Design
- Reservation service: stores
reservation {id, rider, pickup_at_utc, tz, location, price, state, driver_id}. - Timer service: a durable delayed job queue. Each reservation schedules several ...