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
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

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
Vehicle routing
Clustering
Batch optimization
Travel time matrix
Re-planning
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
  • 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 Problems
Sample 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
  1. Package ingest: sort center scans publish which packages are at the station.
  2. Travel time service: returns a matrix of drive times between stop clusters for the time of day, built from ma...

Submit Your Answer
Markdown supported