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
System Design
Software Engineer
Uber
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
Trip lifecycle
Message delivery semantics
Phone number masking
WebSocket gateways
Data retention
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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 by trip_id, with participant ids and an expires_at set on trip.completed plus a grace window...

Submit Your Answer
Markdown supported