Design Low-Latency Trip Offer Delivery to Driver Phones
Last updated: November 29, 2026
Quick Overview
Design how a dispatch decision becomes an offer card on the chosen driver's phone within a second, with a countdown, a guaranteed single acceptance, and fast fallback to the next driver if the offer is not seen or declined.
Uber
November 29, 20260
0
0 solved
Design how a dispatch decision becomes an offer card on the chosen driver's phone within a second, with a countdown, a guaranteed single acceptance, and fast fallback to the next driver if the offer is not seen or declined.
Offer delivery is the last mile of Uber's matching and one of its strictest real-time paths, because every lost second is rider wait time. Interviewers look for persistent connection management at fleet scale, acknowledgments, exactly-one acceptance semantics, and timing behavior on poor mobile networks.
What the Interviewer Expects
- Maintain persistent connections with a routing layer that knows which gateway holds each driver
- Use delivery and display acknowledgments, not just send success
- Make acceptance a conditional state transition so only one driver wins
- Handle timeouts and fallback quickly, including push as a backup channel
- Account for clock skew in the countdown
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
- The driver taps accept just as the offer expires. Who gets the trip?
- How do you find the right gateway node for a driver among thousands of nodes?
- What happens to all connected drivers when a gateway node is restarted for a deploy?
- How would you measure end-to-end offer latency from the driver's perspective?
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
Millions of online drivers keep a connection open. Dispatch selects a driver and wants the offer displayed within ~1 s p99, with a 15 s decision window. Exactly one driver can be assigned per trip; a ...
High-Level Design
- Edge gateways terminate long-lived connections (WebSocket or HTTP/2 or a custom TCP protocol, with QUIC helping on lossy networks). Each connection registers
driver_id -> gateway_nodein a pre...