Systems Architecture · Logistics
A logistics platform handling real-time shipment tracking was hitting hard performance limits under load. A synchronous, monolithic backend was creating cascading failures during peak traffic. We redesigned the core processing architecture from scratch.
The platform processed shipment tracking events from carrier APIs, transformed them, and pushed updates to end-customers via webhooks and a real-time dashboard. During peak hours — particularly around major shopping events — the synchronous processing chain would back up. Events queued, timeouts cascaded, and customers saw stale tracking data. The engineering team had patched around the problem repeatedly, but the root cause was architectural.
We spent the first week reading code and watching the system under load. The core problem was clear: every incoming tracking event triggered a synchronous chain — database write, enrichment API call, customer notification, dashboard update — all in a single request. If any step was slow, the whole chain backed up. There was no isolation between workloads and no way to scale individual steps independently.
We proposed a full event-driven rewrite of the processing core, keeping the existing API surface and database schema intact to minimise disruption to the rest of the system.
"The first peak period after launch, the engineering team had nothing to do. That had never happened before. No pages, no manual retries, no angry customer emails." — VP Engineering
Event processing throughput increased fourfold, with P95 latency dropping from ~180ms to 12ms. System availability improved from approximately 97% (with frequent degraded periods) to 99.95% in the three months following launch. No data loss incidents have occurred since deployment.