Backend Sleeping and Cold Start
petermauno436-glitch
FREEOP

25 days ago

I was recommended to Railway by a friend. Stated that I should move my backend from Render to Railway to escape the cold start issues. However, I am still experiencing the issues and it is affecting my website. Every time a customer clicks on my link it takes about 30 seconds to load the products. I have to always refresh it. Somebody advice me on how I can fix the issue

Solved$10 Bounty

Pinned Solution

You will need to subscribe to a paid plan such as Hobby or Pro to disable the serverless toggle on services.

Free plan users cannot disable serverless.

11 Replies

You will need to subscribe to a paid plan such as Hobby or Pro to disable the serverless toggle on services.

Free plan users cannot disable serverless.


petermauno436-glitch
FREEOP

24 days ago

I thought that Railway was free. I still have 5usd in credit doesn't that count?


petermauno436-glitch

I thought that Railway was free. I still have 5usd in credit doesn't that count?

The $5 worth of credits cannot be used to subscribe to a plan for the first month.

The Free plan provides you with $1 per month to host services on Railway. However, as mentioned above, Free plan users cannot disable serverless, which can lead to slow response times from a cold start.


petermauno436-glitch
FREEOP

24 days ago

I have checked and my serverless is off by default.


You must be on the trial then.

Does this slow response time happen locally?


petermauno436-glitch
FREEOP

24 days ago

my front end is on Vercel and my backend on Railway, when I load my website it loads quickly but the product take about a minute to load after which I have to keep on refreshing the page, without this the products take another minute to load. I don't know what the issue is


petermauno436-glitch
FREEOP

24 days ago

how can I troubleshoot the issue


petermauno436-glitch

my front end is on Vercel and my backend on Railway, when I load my website it loads quickly but the product take about a minute to load after which I have to keep on refreshing the page, without this the products take another minute to load. I don't know what the issue is

You should be hosting both your frontend and backend on one platform (eg, either Vercel or Railway instead of both) to minimize response times.


petermauno436-glitch
FREEOP

24 days ago

I have made them to be in the same region US West on both


petermauno436-glitch

my front end is on Vercel and my backend on Railway, when I load my website it loads quickly but the product take about a minute to load after which I have to keep on refreshing the page, without this the products take another minute to load. I don't know what the issue is

Are you loading images? If so, open Devtools and go to the Networking tab to measure how long each route takes to load, as well as response size.


petermauno436-glitch
FREEOP

24 days ago

how ill that help me address this because it seems more like a cold start issue? If I keep the page refreshed it does not load as much


Status changed to Solved brody 24 days ago


Loading...