← All work

Concept build · REAL-TIME WEB · 2024 · Urban logistics operator

PulseRoute Dispatch

12kDaily routes · routes per day
<120msAPI latency · p95 dispatch read

The challenge

Twelve thousand deliveries a day, tracked in a dashboard that refreshed every 60 seconds and lied about ETAs. Dispatchers phoned riders for positions. The system had to ingest live GPS, recompute ETAs continuously, and work on riders' low-end Android phones with patchy connectivity.

Engineering architecture

Key decisions

01

Stream-first telemetry

GPS ingested over websockets into an append-only event log; materialized views power the dispatch board with sub-second freshness.

02

Predictive ETA engine

Segment-level speed model blended with live traffic. ETAs recompute on every position update; p95 dispatch read stays under 120ms.

03

Offline-first rider web

Service-worker cached route sheets with queued status updates. Riders keep working through dead zones; sync resolves on reconnect.

04

Boring infra, loud alerts

Single Postgres + Redis + one worker fleet. Paging only on ingestion lag, with runbooks the ops team helped write.

Measured outcomes

12k routes a day with live ETAs dispatchers trust. Phone check-ins fell 73%. Late-delivery rate dropped a third in the first quarter after launch.

Next chapter · DOCUMENT AI

Meridian Legal RAG