Prototype Powerhouse: Integrating Clouds for Logistics Domination: Mohammad Ansari

Mohammad Ansari A freight engineer who treats carrier data as a trust problem and cloud spend as an engineering discipline has rebuilt both at the core of a logistics platform handling 15 million transactions a month.

The failure that stayed with Mohammad Ansari lasted 14 hours before anyone noticed. A carrier had quietly renamed a field in its webhook payload. The ingestion code did not throw; it defaulted the status to unknown, the customer-facing pages filtered unknowns out, and 1,200 shipments simply vanished from tracking. No alarm, no ticket, no complaint until the first shipper called.

“The system didn’t error,” Ansari says. “It silently defaulted to an unknown state, and because unknown states were filtered from customer pages, 1,200 shipments disappeared from tracking.”

He fixed it twice. Missing required fields now hard-fail into a dead letter queue where someone has to look at them. The silent filter on the customer page became a degraded tracking message, the shipment visible, the gap named. Mean time to detect a broken carrier feed went from days to hours.

That incident is the shortest route into the two systems Ansari built for a freight booking platform over twelve months: a shipment lifecycle tracking platform spanning 20 carriers, and a cloud cost and capacity framework running underneath it. Different problems, the same instinct. Trust the data you can see, price the infrastructure you actually use, and refuse the shortcuts that look free at the time.

The tracking platform exists because carriers do not agree with each other. Each one defines status codes, timestamps and delivery guarantees on its own terms. A real-time webhook from one carrier can report a shipment delivered at the same moment a batched EDI feed from the same carrier reports it in transit. Both are, in their own frame, correct. Operations teams were spending hours a day reconciling portal screens by hand, and customers were escalating through every Q4 peak.

Ansari’s answer was a canonical milestone model: 200-plus carrier-specific status codes collapsed into a 12-state vocabulary, with the raw events archived so a disputed SLA can be walked back event by event. Conflicts route through a three-tier resolution: carrier reliability ranking first, event timestamp second, feed type third. By his account the model resolves roughly 85 percent of conflicts automatically with the audit trail intact, and normalization coverage sits in the mid-nineties across the full code set.

Twenty carriers inside a year is unusual pace for this kind of work, and it happened because the EDI bottleneck was engineered away rather than staffed around. New EDI carriers had been taking three to four weeks each. Ansari decoupled ingestion from mapping and moved the carrier status configuration into DynamoDB, which meant a feed could be connected once and remapped later without a deploy. REST API carriers now onboard in three to five days, he reports, and vocabulary updates that used to ride a release train run in minutes.

The cost framework underneath came from a different flavour of pain. Freight demand is predictable in timing and unpredictable in size: everyone knows the October and November peak is coming, nobody knows exactly how steep it will be, and reactive autoscaling responds too slowly to intraday bursts. The pricing engine, originally on Spot capacity, was failing rate calculations during exactly the booking windows the business could least afford to lose. Ansari moved it to Reserved Instances. Costs on paper went up. Revenue stopped leaking.

“Cost and reliability are the same conversation framed differently,” he says. “Engineers who frame infrastructure choices in business terms get better decisions made faster.”

The rest of the framework is layered: Reserved Instances for the predictable baseline, Spot for batch workloads that can tolerate interruption, S3 lifecycle policies for storage that nobody touches after 90 days, and Cost Anomaly Detection tuned to fire same-day rather than at the end of a billing cycle. The number Ansari puts on peak-period over-provisioning is a 40 percent reduction. Batch compute spend, he says, came down 60 to 65 percent on Spot.

One of the sharper savings arrived from a bug nobody was looking for. A cooldown period on the autoscaler had been misconfigured, and instances were thrashing, launching and terminating every eight to twelve minutes, each one billing a full hour. CPU monitoring never fired because the instances were behaving normally while they existed. Ansari added a CloudWatch alarm on scale event frequency itself. The anomalous overage dropped 30 to 35 percent once the cooldown was corrected.

He is direct about where the industry still gets things wrong. Autoscaling, he argues, solves availability and not cost: a well-configured autoscaler can sit at 20 percent utilization most of the year if the minimum floor is set too high, and nobody notices because the service is up. And the recurring prediction that EDI is finished strikes him as wishful. “EDI is not dead,” he says. “It remains the dominant connection method for established large carrier relationships, and it will stay that way through the decade.” The sensible path, in his reading, is to carry the translation burden in the normalization layer rather than contorting the application to speak two dialects.

What he thinks is actually coming is narrower and more interesting: API-first freight standards picking up real momentum, and capacity management that incorporates external demand signals rather than reacting to its own CPU graphs. Rule-based autoscaling, in that frame, is the floor, not the ceiling.

The instinct that runs through both builds is the one the 14-hour outage taught him. The most expensive decisions, he says, look free at the time. Config embedded in code, unknown states filtered quietly, cooldowns set by feel. Each one looks like a reasonable shortcut on a Tuesday and concentrates risk for the Friday of the peak.

Author:
Written byTom Allen

Founder of The AI Journal. I like to write about AI and emerging technologies to inform people how they are changing our world for the better.

Follow Tom Allen