Design Driver Arrival Notifications Triggered by Proximity

Last updated: November 29, 2026

Quick Overview

Design the notifications that tell a rider 'your driver is 2 minutes away' and 'your driver has arrived', triggered from the driver's live location, without spamming riders or firing too early.

Uber
System Design
Software Engineer
Uber
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design the notifications that tell a rider 'your driver is 2 minutes away' and 'your driver has arrived', triggered from the driver's live location, without spamming riders or firing too early.

Arrival alerts are a small but high-visibility notification in the Uber rider experience, and they are a good test of event-driven triggers on top of a location stream. Interviewers check deduplication, trigger logic based on ETA rather than raw distance, and channel fallback.

What the Interviewer Expects
  • Evaluate triggers in a stream consumer keyed by trip
  • Use ETA or route-aware distance, not straight-line distance alone
  • Guarantee each notification type fires at most once per trip
  • Pick channels (in-app, push, SMS) based on app state
  • Respect rider settings and quiet behavior while the app is open
Key Topics to Cover
Event triggers
Deduplication
Push notifications
ETA
Stream consumers
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
  • Straight-line distance says 100 m but the driver is across a river. How do you avoid a false arrived alert?
  • How do you make sure two consumer instances do not both send the alert?
  • What if push delivery is delayed by a minute?
  • How would you add a 'driver is waiting, fees start soon' reminder?
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

For each active trip in the en-route state, send "N minutes away" once when the ETA drops below a threshold, and "arrived" once when the driver is at the pickup and stopped (or marks arrived). Alerts ...

High-Level Design
  • Location stream (Kafka keyed by trip id) with driver position updates every few seconds, plus ETA updates from the ETA service.
  • Trigger consumer: partitioned by trip id so one instance own...

Submit Your Answer
Markdown supported