Hamza Ali
/Case Study
Back to projects
EdTech / Scale

eduPortal

300K+ User Educational Platform

eduPortal is a comprehensive LMS built for large educational institutions. The platform handles concurrent live sessions, adaptive assessments, video content delivery, and real-time collaboration — all optimized for high concurrency and low cost.

300K+ users
30% perf boost
Real-time collab
Multi-institution

Tech Stack

NestJSNext.jsPostgreSQLRedisCDNWebSocketsAWS S3Docker
01

The Problem

The platform struggled with performance degradation under peak load (exam periods, live sessions), leading to timeouts and poor user experience for hundreds of thousands of concurrent users.

02

Architecture

Horizontally scalable NestJS API with read replicas for PostgreSQL. WebSocket rooms managed through Redis adapter for horizontal scaling. CDN-cached static content with edge delivery. Database query optimization reduced N+1 problems and introduced materialized views for heavy analytics queries.

03

Engineering Challenges

  • Handling 50,000+ concurrent WebSocket connections during peak exam periods
  • Eliminating database N+1 queries causing cascading timeouts
  • Reducing cold-start latency for adaptive assessment generation
  • Cost optimization while maintaining reliability for 300K users
04

Solution

Implemented connection pooling with PgBouncer, Redis-backed WebSocket scaling, and aggressive query optimization with EXPLAIN ANALYZE profiling. Introduced caching layers at the API, database, and CDN levels. Rewrote hot-path queries with batch loading.

05

Results & Impact

  • 30% improvement in overall platform performance
  • 300,000+ active users served reliably
  • 50,000+ concurrent WebSocket connections at peak
  • 40% reduction in infrastructure costs through optimization