supplier-asn-validation-re-architecture.md — Ravi Ranjan
‹ All Projects
2024
Java 21Spring BootAzure

Supplier ASN Validation Re-architecture

The problem

Supplier Advance Shipping Notice (ASN) validation ran as a slow, batch-oriented process. Under peak seasonal load, P99 processing time stretched to roughly 25 minutes per batch, creating a bottleneck for downstream warehouse and inventory systems and driving up compute costs from over-provisioned batch workers.

What changed

  • Replaced the batch validation pipeline with an event-driven design on Java 21 and Spring Boot, validating ASNs as they arrive instead of in scheduled windows.
  • Moved compute-heavy validation rules into stateless, horizontally scalable services on Azure, removing the need for the previous over-provisioned batch cluster.
  • Added schema and business-rule validation layers that fail fast, with clear rejection reasons surfaced back to suppliers instead of opaque batch failures.

Result

  • P99 processing time dropped from ~25 minutes to ~5ms.
  • Annual infrastructure cost cut by 85% by removing the always-on batch cluster in favor of on-demand, event-driven compute.
  • Suppliers get near-instant feedback on ASN validation instead of waiting for the next batch cycle.