Design Trip-Scoped Rider and Driver Messaging With Masked Calls
Last updated: November 29, 2026
Quick Overview
Design the in-app chat and masked phone calling that lets a rider and driver contact each other only while a trip is active, without either side ever seeing the other's real phone number.
Uber
November 29, 20260
0
0 solved
Design the in-app chat and masked phone calling that lets a rider and driver contact each other only while a trip is active, without either side ever seeing the other's real phone number.
Uber interviewers like this problem because messaging is tied to trip lifecycle, privacy, and spotty mobile networks rather than being a generic chat app. They check whether you scope channels to a trip, handle delivery on flaky driver connections, and treat number masking as a safety feature with its own failure modes.
What the Interviewer Expects
- Model a conversation as owned by a trip with a clear open and close lifecycle
- Explain delivery guarantees (at-least-once with client dedupe) over unreliable mobile links
- Describe proxy number allocation for masked calls and SMS
- Cover retention, safety review access, and abuse reporting
- Handle the offline driver case with push fallback
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 recycle proxy phone numbers without misrouting a late call?
- What happens if the rider calls ten minutes after the trip ends because they left a phone in the car?
- How would you add canned quick replies and auto-translation?
- How do you keep this working when one region's telephony vendor is down?
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
Functional: rider and driver can text and call each other from accept until shortly after drop-off; messages show sent, delivered, read; quick replies for drivers who should not type while driving; lo...
High-Level Design
- Conversation service: creates a conversation when the trip service emits
trip.accepted, keyed bytrip_id, with participant ids and anexpires_atset ontrip.completedplus a grace window...