India’s Leading Domain & Web Hosting Provider
Online exam platform holds 2.2 lakh concurrent candidates with predictive scaling
Assessment platform provider, about 600 employees, serving universities and recruitment bodies · Pan-India, primary operations in Northern India · 9 weeks
As-is situation
The exam engine was a Java Spring Boot monolith on 30 c5.4xlarge instances behind a Classic Load Balancer, with a Tomcat session cluster that made instances sticky. Exam load is extreme and predictable: candidates log in within a 15-minute window before a slot, then submit answers every 30-60 seconds. During a university entrance exam with 1.6 lakh candidates, login latency reached 19 seconds, about 4,100 candidates were given extra time after timeouts, and the client imposed a penalty clause. Between exam days the 30 instances ran at under 8% CPU.
- Login storm of up to 1.5 lakh authentication requests in 10 minutes at slot start
- Sticky Tomcat sessions, so new instances took no load until existing sessions expired
- Contractual SLA of under 2 seconds for answer-save acknowledgement, with penalties per affected candidate
- Year-round fixed fleet costing about INR 14 lakh a month for an average of 9 exam days a month
Selected AWS services and architecture
NTSPL first externalized session state to ElastiCache for Valkey and replaced sticky sessions with stateless JWTs, so any instance can serve any candidate. The monolith moved to Graviton m7g instances behind an Application Load Balancer, in an Auto Scaling group with a small On-Demand base outside exam days. Because the exam calendar is known weeks in advance, scheduled actions driven by the scheduling database raise minimum capacity 45 minutes before each slot, sized at one instance per 2,500 expected candidates, and predictive scaling handles daily patterns. Answer saves go to an SQS queue consumed by a separate Auto Scaling group, so a database slowdown never blocks the candidate's screen. Spot is deliberately excluded from the exam-day web tier.
Implementation approach
Measured results
Operational improvements
- Exam-slot capacity is created automatically from the scheduling database instead of an engineer resizing the fleet the night before
- Sticky sessions were removed, so unhealthy instances are replaced mid-exam without logging candidates out
- Answer saves are buffered in SQS, so a database failover during an exam no longer loses responses
Cost considerations
Exam-day web capacity runs On-Demand by choice, because an interruption during a timed exam carries penalty risk greater than the Spot saving. A Compute Savings Plan covers the small non-exam baseline and the SQS consumers. The largest saving came from removing 30 instances that ran around the clock for nine exam days a month.
Return on investment
Indicative annual compute savings are INR 85-95 lakh, and the platform has cleared every SLA since cutover, removing penalty exposure that had cost about INR 40 lakh in the preceding year. The provider also used the proven 2 lakh concurrency figure to bid for two larger national recruitment exams.