India’s Leading Domain & Web Hosting Provider
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
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
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.
Implementation approach
Measured results
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
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.
Return on investment
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.