For competitive exam coaching institutes, Sunday morning mock tests are make-or-break events. When 10,000+ ambitious students log in at precisely 10:00 AM to simulate a state civil services exam, a server crash is a catastrophic reputation disaster. When an established civil service test prep academy came to Webeta, their monolithic WordPress and LearnDash infrastructure crashed three weekends in a row. Here is how Webeta re-architected their testing engine into a high-concurrency React SPA with offline IndexedDB resilience and Go/PostgreSQL grading workers, easily scaling to 12,000 simultaneous test takers with zero downtime.
Key Takeaways
- The Problem: Weekend mock exams crashed under 4,000 concurrent students, causing lost test answers, student outrage on social media, and thousands of refund requests.
- The Solution: Decoupling the frontend test simulator from backend evaluation using a client-side React Single Page Application backed by high-throughput Go microservices and PostgreSQL.
- Offline Network Resilience: Every student answer is instantly cached in browser IndexedDB; if a student's mobile 4G connection drops mid-exam, the timer continues locally and syncs automatically upon reconnect.
- Instant Rank Analytics: Replacing synchronous SQL updates with Redis sorted sets (ZADD) to generate comprehensive state-wide percentile ranks for 12,000 students in under 3 seconds.
- Tangible ROI: Handled 12,400 concurrent test-takers with sub-15ms client latency; zero lost student submissions; 140% growth in annual mock test subscription passes.
The Challenge: The Sunday 10:00 AM Traffic Spike
Unlike typical e-commerce or SaaS platforms where web traffic distributes evenly throughout the day, competitive exam platforms experience the most punishing traffic curve in software engineering: the instantaneous step spike.
- Simultaneous Login Shock: At 9:58 AM, active users on the platform would be 45. At 10:00:01 AM, exactly 8,500 students clicked 'Start Exam' within a 15-second window.
- Database Lock Contention: The legacy WordPress LearnDash plugin wrote every question answer as an individual row in
wp_postmeta, firing 850,000 database writes within minutes and locking the MySQL database. - Connection Exhaustion: Apache and PHP-FPM worker pools exhausted within 90 seconds, causing Cloudflare 502 Bad Gateway errors across the entire academy domain.
The Modern High-Concurrency Architecture
Webeta redesigned the exam delivery pipeline using a decoupled, edge-optimized architecture:
| Architecture Layer | Legacy Architecture | Webeta Engineered System |
|---|---|---|
| Test Delivery Engine | Server-rendered PHP/LearnDash pages | Client-side React SPA pre-downloaded via CDN |
| Answer Storage | Synchronous MySQL writes per question | Local IndexedDB caching + batched WebSocket sync |
| Network Drop Handling | Session terminates, answers lost | Zero disruption: test runs offline until submission |
| Score & Rank Generation | 48-hour manual batch script | Real-time Redis ZSET ranking in 2.8 seconds |
Engineering Deep Dive: IndexedDB Offline Sync
To protect students in rural areas with spotty cellular reception, questions are pre-encrypted and loaded into the browser memory upon exam initialization. Every option selection writes immediately to local storage:
Need help with your tech stack?
Our engineering team specializes in scalable web architectures.
The Results: Flawless Execution Under Record Load
The first major trial occurred during the All-State Pre-Civil Services Grand Mock Exam:
- 12,400 Concurrent Test Takers: At exactly 10:00 AM, 12,400 students began the 150-question simulation simultaneously. Peak server CPU utilization stayed below 32%.
- Zero Lost Submissions: Over 1.86 million individual answers were submitted and recorded with 100% data integrity, even for hundreds of students whose cellular connections dropped multiple times during the exam.
- Sub-3-Second Scorecards: When the 120-minute timer ended, state-wide percentiles, subject breakdowns, and negative-marking calculations were published to all 12,400 dashboards in under 3 seconds.
Ready to build your digital ecosystem?
Let's talk strategy. We design and engineer premium platforms for industry leaders.
Start Project DiscoveryReady to build your digital ecosystem?
Let's talk strategy. We design and engineer premium platforms for industry leaders.
Start Project Discovery

