India’s Leading Domain & Web Hosting Provider
Seed company refactors dealer ordering off MSMQ and file shares before kharif peak
Hybrid seed company with 4,500 dealers across 11 states · Hyderabad and Aurangabad, India · 11 weeks
As-is situation
Dealer orders and seed lot certificates ran through a .NET Framework 4.6 web app on two IIS servers. Orders were posted to MSMQ on the first server and processed by a Windows service that wrote lot certificates as PDFs to a UNC share. If the first server restarted, queued orders were stuck. In the May-June kharif booking peak, order volumes rose eightfold and the Windows service fell four hours behind, leaving dealers without lot certificates for dispatch. Trucks waited at the warehouses.
- MSMQ and the Windows service tied processing to one server.
- An 8x kharif peak left certificate generation four hours behind.
- Certificates on a UNC share were exposed to all domain users.
Approach, tools and architecture
NTSPL agreed eleven change items. The app was upgraded to .NET 8 so it could run on Linux App Service. MSMQ calls were replaced with Azure Service Bus queues using sessions per dealer to keep order sequence. The Windows service became a queue-triggered Azure Functions app that scales with backlog. Certificates are written to Blob Storage with access through short-lived links. Managed identities replaced the stored connection strings. Behaviour was checked with 600 recorded orders replayed through both builds. Dealers saw no change in screens.
Implementation approach
Measured results
Operational improvements
- Dispatch teams receive lot certificates within minutes of order approval.
- Dead-lettered orders alert the support desk immediately.
Cost considerations
Functions on a consumption-style plan cost little outside the two-month peak. App Service and Service Bus Standard cost about INR 70,000 a month. The .NET 8 upgrade was 40% of the effort but was required for Linux hosting.
Return on investment
Faster certificates removed dispatch delays in the season when most annual revenue is booked. Retiring two IIS servers and their licences saves about INR 6 lakh a year, and the refactor cost less than half of a rewrite quote.