Skip to content

Category

software development

Practical software engineering from a team lead: clean code, SOLID, refactoring, debugging, backend design and system architecture with Laravel and React.

Four fixes for handling concurrent users in a web application: a database connection pool smaller than max_connections, a short TTL cache for hot reads, a queue for slow work, and atomic updates instead of read-then-write

11/4/2026

How to Handle Concurrent Users in a Web Application

Results day on our school ERP brought thousands of parents to one page, 500 errors at 30% CPU and an oversold test slot. Here is what actually breaks under concurrency, measured, and how to fix each one.

By Muhammad Wilayat Shah

Read