Slow API calls
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
Hello!
I would like to ask for some advice, I already checked out a few articles and videos to understand its important to push static stuff to client, which makes sense.
My problem rather occurs that sometimes API calls are incredibly slow and I am not sure if this is coming from the NextJS call itself or it fails on the backend side.
The backend is pretty much a simplistic NodeJS and Express app, nothing fancy combined with a PostreSQL database. Now the strange thing is that, there is barely any data and in the past, when I worked with mostly VueJS or other frameworks, I never had similar issues with my API calls, but in case of NextJS (this is my very first app with this framework) it seems to sometimes just hang and timeout, but sometimes it's incredibly fast.
I am not sure where is the problem exactly laying low, but it's super annyoying and it was mainly only happening on a production project.
Where it is mostly visible is:
I've also disabled Cloudflare for the time being to ensure it's not interferencing, but it doesn't seems to.
Marcell
I would like to ask for some advice, I already checked out a few articles and videos to understand its important to push static stuff to client, which makes sense.
My problem rather occurs that sometimes API calls are incredibly slow and I am not sure if this is coming from the NextJS call itself or it fails on the backend side.
The backend is pretty much a simplistic NodeJS and Express app, nothing fancy combined with a PostreSQL database. Now the strange thing is that, there is barely any data and in the past, when I worked with mostly VueJS or other frameworks, I never had similar issues with my API calls, but in case of NextJS (this is my very first app with this framework) it seems to sometimes just hang and timeout, but sometimes it's incredibly fast.
I am not sure where is the problem exactly laying low, but it's super annyoying and it was mainly only happening on a production project.
Where it is mostly visible is:
https://dev.merchparadise.net/catalog
I've also disabled Cloudflare for the time being to ensure it's not interferencing, but it doesn't seems to.
Marcell
3 Replies
Masai LionOP
Not gonna lie, it appears to be it was only Caddy
For some reason the proxied requests sometimes failed.... with OLS its blizzing fast