Design Live Trip Sharing for Friends Without the App
Last updated: November 29, 2026
Quick Overview
Design the Share My Trip feature: a rider shares a link, and anyone who opens it in a browser sees the car moving on a map, the driver and vehicle details, and the live ETA until the trip ends.
Uber
November 29, 20260
0
0 solved
Design the Share My Trip feature: a rider shares a link, and anyone who opens it in a browser sees the car moving on a map, the driver and vehicle details, and the live ETA until the trip ends.
This is a common warm-up design at Uber because it reuses the location stream the platform already has and asks you to expose it safely to anonymous web viewers. The interviewer checks link security, read fan-out, and whether you avoid hitting core dispatch services from a public page.
What the Interviewer Expects
- Generate an unguessable, expiring share token tied to one trip
- Serve viewers from a read-optimized path, not the dispatch service
- Choose polling or server-sent events with a sensible update rate
- Stop exposing data the moment the trip ends or the rider revokes
- Limit what personal data the page shows
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 would you let the viewer get a notification when the rider arrives?
- What if a share link is posted publicly and gets thousands of viewers?
- How do you show a smooth car animation from updates every four seconds?
- How would you support sharing automatically with trusted contacts on every trip?
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
A rider taps share and gets a URL. Viewers (no login) see driver first name, car, plate, live position, route, and ETA. The link dies when the trip completes plus a few minutes, or when the rider revo...
High-Level Design
- Share service:
POST /trips/{id}/sharereturns a random 128-bit token stored astoken -> {trip_id, expires_at, revoked}in a KV store. - Trip snapshot cache: a consumer on the driver loca...