Design Last Mile Delivery

Hard45 min
1 / 30
understanding8 min read

Problem Statement: Last-Mile Parcel Delivery Platform

How Problem Statement: Last-Mile Parcel Delivery Platform (understanding) informs Last Mile Delivery architecture and interviewer depth.

Problem Statement: Last-Mile Parcel Delivery Platform

Last-mile connects sort centers, delivery associates, and recipients for the final leg after line-haul. Unlike ride-hailing, you optimize stop sequences, time windows, and proof-of-delivery under hard SLA tiers (same-day, next-day, scheduled).

Interviewers expect Shipment Command as the single writer; dispatch routes and ETAs are eventually consistent projections keyed by shipment_id.

How the pieces fit

A parcel flows from line-haul into a sort center — scanned, sorted to a route, and loaded — then a delivery associate pulls a route manifest, drives an optimized stop sequence, and captures proof-of-delivery (a scan, photo, or signature) at each stop, while the recipient tracks a live ETA and can redirect to a locker or reschedule. The three SLA tiers (same-day, next-day, scheduled) set the urgency that drives sort priority and route cutoffs.

Operational signals

Watch assign_latency_p95, stop_sequence_slip_minutes, manifest_queue_depth, pod_fail_rate, and geo_index_lag_seconds. Page when assign_latency_p95 > 12m for 5 minutes in any depot.

Why interviewers care

A strong answer treats this as a logistics-state problem: name Shipment Command as the single writer, separate the durable shipment state from the eventually-consistent route and ETA projections, and bring a real failure story — not a generic microservice diagram.

Interview checkpoint

Keep one concrete outage ready: a depot's geo-index lags, so assignments route associates to stale addresses — you catch it via geo_index_lag_seconds, freeze auto-assign for that depot, and fall back to last-known-good routes rather than mis-dispatching.

Key Highlights

  • Anchor 1-A: shipment command owns truth
  • Anchor 1-B: depot-sharded dispatch
  • Anchor 1-C: idempotent scans
  • Anchor 1-D: H3 supply index
Signal
For Problem Statement: Last-Mile Parcel Delivery Platform, cite stop-sequence slip and POD photo rate.
Tip
Quote 8M parcels/day and 900/s peak manifest when naming components in Problem Statement: Last-Mile Parcel Delivery Platform.

Section Rescue Kit

Buzzwords to use:

Transactional outbox 1H3 supply cell 1

Safe statements:

  • "I'll anchor Problem Statement: Last-Mile Parcel Delivery Platform on shipment-command invariants before ETA freshness debates."
  • "If time is short, I defer locker networks until dispatch and POD are credible."
Design Last Mile Delivery - System Design | WinJob | WinJob