India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSCourier and express parcelOther Industries

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

Amazon Web Services
01

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
02

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.

GitHub → CodeBuild multi-arch build → ECR + Inspector scan → ECS on Fargate (Graviton) → S3 / ElastiCache / EventBridge Scheduler
AWS App2ContainerAmazon ECRAmazon InspectorAmazon ECS on AWS FargateAmazon EventBridge SchedulerAWS CodeBuild
03

Implementation approach

Weeks 1-2 · Gap analysisScored all 22 apps and grouped them into three remediation waves.
Weeks 3-7 · RemediationExternalised files, schedules and sessions wave by wave.
Weeks 6-9 · Images and servicesBuilt base images, the pipeline and Fargate service definitions.
Weeks 10-12 · CutoverSwitched traffic app by app and retired the VMs after two weeks on standby.
04

Measured results

Monthly compute cost for the 22 apps
INR 14.5 lakh (61 VMs)→INR 6.1 lakh (Fargate, incl. S3 and ElastiCache)
Monthly patching effort
9 person-days→1 person-day reviewing automated rebuilds
Time to fix a critical library CVE everywhere
17 days→2 days
Deployment method
Shell scripts over SSH→Pipeline promotion by image digest

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
05

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.

06

Return on investment

ROI indicator

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.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.