N
Nuxt9mo ago
Kyllian

How to decrease server response time?

Hi, I know it's a broad question, but let me explain. I'm currently experiencing some issues with Nuxt under 'high' load. The server response time will increase from ~300ms to ~700m. But the API is done within 10ms according to the logs. Which makes me think somewhere there might be a bottleneck in the network itself. Pinging the domain takes around 20ms at most. Where would I begin looking for those issues? DNS resolving seems fine according to the network tab. The content download itself is 80ms, but the 'Waiting for server response' is easily 300ms+.
2 Replies
Detoxer
Detoxer9mo ago
Check removing/commenting server function and debug the execution time as nuxt don’t take much time internally check through other package and make sure you use parallel async or move some function from server to client to mange load like using suspend or asyncdata
Kyllian
KyllianOP9mo ago
it's running in docker, behind a apache reverse proxy considering switching to nginx now as it supports http/3 running on digitalocean we've had it running on the vps before but it had the same issue i've honestly been considering putting it in kubernetes as it is really under some user load sometimes is that easier to set up? as in we switched it around a few times now so
Want results from more Discord servers?
Add your server