Design Offline Delivery Confirmation Sync for Driver Handheld Devices
Last updated: November 29, 2026
Quick Overview
Design how delivery driver handheld devices record delivered, attempted and photo-on-delivery events while offline in poor coverage areas, then sync them to the backend reliably and in order once connectivity returns.
Amazon
November 29, 20260
0
0 solved
Design how delivery driver handheld devices record delivered, attempted and photo-on-delivery events while offline in poor coverage areas, then sync them to the backend reliably and in order once connectivity returns.
A sync-focused question in the style of Amazon last-mile teams, where drivers often lose signal in buildings and rural areas. The interviewer checks local durability, idempotent upload, conflict handling when the backend also changes the route, and how photos are uploaded separately from events.
What the Interviewer Expects
- Write every event to a local durable queue before showing success
- Upload events idempotently with client generated event IDs
- Upload photos separately with resumable uploads and link by ID
- Merge backend route changes (reassigned or cancelled stops) with local state
- Surface sync status to the driver and the station
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
- What if the device is lost before it syncs?
- How do you handle a package that support cancelled while the driver marked it delivered offline?
- How do you prevent duplicate 'delivered' notifications to the customer?
- How would you prioritize uploads on a weak connection?
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: driver app records stop outcomes (delivered, attempted with reason, handed to resident), photo, GPS and timestamp. Customers get a delivery notification once the event reaches the back...
High-Level Design
- Device local store: SQLite style database with the route, and an outbox table of events with
event_id(UUID),stop_id,type,device_time,sequence,sync_state. - Sync agent o...