India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSEdTech (online assessments and proctored exams)Education

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

Amazon Web Services
01

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
02

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.

Candidates → Route 53 → Application Load Balancer → EC2 Auto Scaling (Graviton, scheduled + predictive) → ElastiCache for Valkey sessions → SQS answer queue → consumer Auto Scaling group → exam database
Amazon EC2 (Graviton m7g)Amazon EC2 Auto Scaling scheduled and predictive scalingApplication Load BalancerAmazon ElastiCache for ValkeyAmazon SQSCompute Savings Plans
03

Implementation approach

Weeks 1-3 · Statelessness refactorMoved HTTP sessions to ElastiCache, introduced signed JWTs and removed Tomcat session replication from the monolith.
Weeks 4-5 · Fleet and scaling automationBuilt the Graviton Auto Scaling group and a Lambda function that reads the exam calendar and creates scheduled scaling actions per slot.
Weeks 6-8 · Exam-day rehearsalsRan three mock exams with synthetic candidates up to 2.5 lakh concurrent users and tuned ALB slow-start and SQS consumer scaling.
Week 9 · Live exam cutoverMoved a mid-size recruitment exam first, then the university entrance exam, with NTSPL engineers on the bridge for both.
04

Measured results

Peak concurrent candidates handled
1.6 lakh (degraded)→2.2 lakh
Login p95 latency at slot start
19 s→1.4 s
Answer-save acknowledgement p99
6.8 s→0.6 s
Monthly compute cost
~INR 14 lakh→~INR 6.2 lakh

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
05

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.

06

Return on investment

ROI indicator

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.

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.