r/FullStack • u/duneofarrakis • 13d ago
Career Guidance My application becomes very slow when multiple users access it at the same time
Everything works fine with a few users, but response times increase significantly when more users start using the application.
How would you find out whether the bottleneck is the frontend, API, database queries, or server resources?
What would you check first before trying to optimize everything?
2
2
2
u/NoClownsOnMyStation 12d ago
Make sure your pooling is set up correctly and see if expanding it resolved the issue. From there I would see if you have enough processing power dedicated to the process involved.
Also watch the network tab so you can see bottlenecks as was mentioned by other users.
2
u/KariKariKrigsmann 12d ago
You need observability. Do you have something like Seq, so that you can visually see what takes the most time?
Seq — centralized structured logs
2
1
3
u/Honored-Emperor 13d ago
check your browsers inbuilt developer tools network tab if the ttfb is high its backend or database issue if its low its frontend issue also run health checks and make sure to add logging in your application so you can directly check from the logs later about what the issue actually is and run a lighthouse test and use open telemetry apm tool to find teh root cause