I have an App written in Nuxt3 and recently I noticed that my app can't handle heavy concurrent requests. I tested my app with K6 Load Tester and I realized that useFetch is the problem.
I removed data fetching code from Script and the performance was way way higher than before.
Afterwards, I run my API on my local machine and tested again; the results were the same.
(My API responses under 100ms)
My question is: How apps should optimize to handle large number of users?