I have very slow response time
I've just deployed my application: frontend on Vercel and backend on Railway (Node.js server is on Railway, Database is on Neon).
I noticed how long it takes for server to respond and it's unnacceptable. I wonder what is the reason and how I can remove this long delay.
Is it because I'm on Starter Plan and I should switch to Hobby Plan for $5/month?
I'm open for any suggestions!
Project ID: 49e9aae3-10ff-4872-b34f-09cfc9d5fd8a
14 Replies
Project ID:
49e9aae3-10ff-4872-b34f-09cfc9d5fd8a
Where are you located? Railway only has servers in US-West atm
Or more importantly, where is your Database located?
I'm in Ukraine.
Database is eu-central-1, seems like not far away.
That's extremely far
That'll be the cause of the latency you're experiencing. To reduce it, host your database in America
It's better to change deployment provider, yeah?
Railway provides databases
Up to you
I don't see why it would be better to change one over the other, unless your users are in Europe
Actually, goal audience of my app are Ukrainian users, so probably it'd be better to change provider, but I like Railway so much.
Yeah, I understand now how far Railway servers are from my Database, maybe I'll try to create Database also on Railway.
It's worth a shot, creating databases is easy on Railway
Yes, it's so much better now, and actually, the delay now is acceptable.
I don't have much credits on Starter Plan, so a little bit later I am going to switch to Hobby Plan.
Thank you for your suggestion!
Of course! Happy to help. I'm glad it worked out
Oh, sorry, I have last question.
I don't see any other plans except the Hobby. Is Railway actually ready for big production projects?
Right now I don't need a lot of resources, just asking in advance.
Yes, there are Pro and Enterprise plans available
Great, thank you!
Railway
Pricing
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.