Design Route Planning for Amazon Flex Delivery Blocks
Last updated: November 29, 2026
Quick Overview
Design the service that turns the packages assigned to a delivery station each morning into ordered routes for independent Amazon Flex drivers, respecting block lengths, vehicle capacity and delivery windows.
Amazon
November 29, 20260
0
0 solved
Design the service that turns the packages assigned to a delivery station each morning into ordered routes for independent Amazon Flex drivers, respecting block lengths, vehicle capacity and delivery windows.
A harder logistics prompt for Amazon transportation teams, where the interviewer cares less about the exact optimization algorithm and more about how you structure a batch optimization pipeline with deadlines, re-planning and driver-facing guarantees.
What the Interviewer Expects
- Frame it as a capacitated vehicle routing problem with time windows
- Split by station and cluster geographically before optimizing
- Use heuristics with a time budget, not exact solvers
- Produce routes before drivers' block start with a hard deadline
- Support same-day re-planning when drivers no-show or packages are late
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 handle a driver who cancels 15 minutes before the block?
- What metrics would tell you the routes are good?
- How do you use historical stop times, such as apartment buildings taking longer?
- How would you run what-if simulations for a new station?
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: given packages (address, size, window), drivers with block length (2 to 4 hours) and vehicle capacity, produce an ordered stop list per driver. Non-functional: routes ready 30 minu...
High-Level Design
- Package ingest: sort center scans publish which packages are at the station.
- Travel time service: returns a matrix of drive times between stop clusters for the time of day, built from ma...