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.
Tech Stack
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.
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.
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
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.
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