India’s Leading Domain & Web Hosting Provider
Courier packs 22 tracking and billing apps onto Fargate and retires 61 VMs
National courier covering 3,400 pin codes, about 7 lakh shipments a day · AWS Mumbai · 12 weeks
As-is situation
The courier ran 22 internal Java and Node applications, covering tracking, rate calculation, pickup scheduling, COD reconciliation and franchise billing, on 61 EC2 instances migrated as-is in 2023. Average CPU was 11%. Each application had a hand-built AMI; patching took the three-person operations team nine working days a month, and one critical library vulnerability in 2025 took 17 days to close across all VMs. Deployments were shell scripts run over SSH, and nobody could say which library versions were running where.
- 61 VMs at 11% average CPU costing INR 14.5 lakh a month
- Nine person-days a month patching hand-built AMIs
- 17 days to remediate one critical library CVE across all applications
Approach, tools and architecture
NTSPL ran a 12-factor gap analysis on all 22 applications: 15 were stateless after config fixes, five wrote proof-of-delivery images and manifests to local disk, and two batch apps held schedules in memory. Local files moved to S3 via pre-signed URLs, schedules to EventBridge Scheduler and sessions to ElastiCache. App2Container produced first-pass Dockerfiles, which we rebuilt as multi-stage images on shared Amazon Corretto 21 and Node 22 bases. CodeBuild builds multi-architecture images, Inspector scans them, and 19 of the 22 apps run on Graviton-based Fargate tasks.
Implementation approach
Measured results
Operational improvements
- Base-image updates trigger rebuilds and pull requests for all 22 apps automatically
- Rate calculation scales to eight tasks at the evening pickup cut-off and back to two overnight
Cost considerations
Engineering cost was INR 46 lakh. The INR 8.4 lakh monthly saving came mainly from right-sized tasks of 0.5-1 vCPU replacing 4-vCPU VMs, plus Graviton pricing; the new monthly figure already includes the added S3 and ElastiCache charges.
Return on investment
At INR 8.4 lakh a month saved, the engineering cost paid back in under six months. Freed operations time went into building COD reconciliation alerts, which cut franchise payment disputes by about a third within the following two quarters.