Design Real-Time Package Tracking With Driver Location Updates
Last updated: November 29, 2026
Quick Overview
Design a system that shows customers where their package is, including a live map of the delivery driver when the package is a few stops away, for tens of millions of packages per day.
Amazon
November 29, 20260
0
0 solved
Design a system that shows customers where their package is, including a live map of the delivery driver when the package is a few stops away, for tens of millions of packages per day.
Last-mile delivery visibility is a core part of Amazon's customer experience, and this prompt tests event ingestion at high write volume plus a fan-out read path. Interviewers check whether you separate the durable package event history from ephemeral location data and respect driver privacy.
What the Interviewer Expects
- Durable ordered history of package scan events
- High-rate GPS ingestion from driver devices
- Live map only when the driver is close, with privacy limits
- Low-latency read for the tracking page
- ETA updates as stops complete
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 handle drivers in areas with poor connectivity?
- How would you push updates instead of having clients poll?
- How long do you keep GPS data and why?
- How would you compute stops-away accurately when routes change?
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: customers see package status timeline (shipped, at facility, out for delivery, delivered) and, when the driver is within about 10 stops, a live map with ETA. Non-functional: about ...
High-Level Design
- Scan Event Pipeline: facility scanners and driver apps publish package events to a stream (Kinesis), partitioned by package id. A consumer writes to a Package Events table keyed by `package_...