India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSD2C e-commerce (fashion and lifestyle)Retail, E-commerce & Consumer

D2C fashion brand absorbs 14x festive flash-sale traffic with zero checkout outages

Digital-first brand, about 350 employees, INR 400 crore annual GMV · Pan-India, operations in Western India · 8 weeks

Amazon Web Services
01

As-is situation

The storefront ran on a headless commerce stack with a Node.js API and a Next.js frontend on 18 fixed m5.2xlarge EC2 instances in a single Availability Zone, kept at that size all year because nobody trusted the Auto Scaling group. Average CPU outside sale weeks was 11%. During the previous Big Festive Sale the 8 pm drop pushed concurrent sessions from roughly 9,000 to 1.3 lakh in four minutes; new instances took nearly seven minutes to bootstrap, the payment page returned 502 errors for 23 minutes, and the brand estimated lost orders worth about INR 2.4 crore.

  • Seven-minute launch-to-healthy time because every instance installed Node.js modules and pulled assets at boot
  • Single-AZ deployment, so one zone event would take the entire storefront offline
  • Monthly EC2 bill of about INR 21 lakh, nearly all On-Demand, for a fleet that was idle 90% of the time
  • Scaling on average CPU, which stayed under 60% while the event loop was already saturated and latency climbing
02

Selected AWS services and architecture

NTSPL rebuilt the compute tier in ap-south-1 across three Availability Zones. Node.js services were rebuilt for arm64 and moved to c7g and m7g Graviton instances, baked into Image Builder AMIs so boot needed only a config pull from Parameter Store. The Auto Scaling group uses a mixed-instances policy: six On-Demand instances as the base, then up to 60% Spot across eight instance types with price-capacity-optimized allocation. Target tracking runs on ALB RequestCountPerTarget at 900 requests per minute per instance, a warm pool of 20 stopped instances covers the first wave, and scheduled actions lift the minimum to 40 instances 30 minutes before each sale drop. Carts moved to ElastiCache so any instance can be removed safely.

Shoppers → Route 53 → CloudFront + AWS WAF → Application Load Balancer → EC2 Auto Scaling (Graviton On-Demand base + Spot) → ElastiCache carts → commerce API
Amazon EC2 (Graviton c7g, m7g)Amazon EC2 Auto Scaling with warm poolsApplication Load BalancerAmazon EC2 Spot InstancesCompute Savings PlansEC2 Image BuilderAmazon ElastiCache
03

Implementation approach

Weeks 1-2 · Load profilingReplayed the previous sale's traffic pattern with a distributed load test to find the per-instance breaking point and the real bottleneck in the Node.js event loop.
Weeks 3-5 · Graviton and AMI pipelineRebuilt containers and native modules for arm64, set up Image Builder and cut boot-to-healthy from seven minutes to about 70 seconds.
Weeks 6-7 · Multi-AZ fleet and scaling policiesDeployed the mixed-instances group, warm pool, scheduled actions and Spot drain hooks, then ran two full-scale rehearsals at 1.5x the previous peak.
Week 8 · Commitment and go-livePurchased a one-year Compute Savings Plan sized to the new six-instance baseline and went live three weeks before the festive season.
04

Measured results

Launch-to-InService time
~7 min→~70 s
Checkout errors during peak sale hour
23 min of 502s→0 outage minutes; 5xx under 0.05%
Checkout API p95 latency at peak
4.2 s→0.9 s
Monthly EC2 and ELB spend (non-sale month)
~INR 21 lakh→~INR 9.5 lakh

Operational improvements

  • Sale launches no longer need a midnight war room; scheduled actions and target tracking add capacity without manual instance launches
  • OS patching moved from quarterly maintenance windows to a monthly AMI rebuild and instance refresh with no downtime
  • Spot interruptions are handled by drain hooks and logged in CloudWatch rather than raised as incidents
05

Cost considerations

The main cost driver was an all On-Demand x86 fleet sized for peak. The brand accepted a one-year Compute Savings Plan on only the six-instance baseline, deliberately leaving sale capacity on Spot and On-Demand. Spot was capped at 60% so a capacity crunch on sale night would degrade cost, not availability. ElastiCache added about INR 60,000 a month.

06

Return on investment

ROI indicator

Indicatively, the compute bill fell by about INR 1.3-1.4 crore a year while peak capacity rose roughly 2.5x. Avoiding a repeat of the previous sale's checkout outage alone protects an estimated INR 2-2.5 crore of orders per major event, so the engagement paid back within the first festive season.

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.