R
Railway16mo ago
danulqua

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
Percy
Percy16mo ago
Project ID: 49e9aae3-10ff-4872-b34f-09cfc9d5fd8a
Adam
Adam16mo ago
Where are you located? Railway only has servers in US-West atm Or more importantly, where is your Database located?
danulqua
danulqua16mo ago
I'm in Ukraine. Database is eu-central-1, seems like not far away.
Adam
Adam16mo ago
That's extremely far That'll be the cause of the latency you're experiencing. To reduce it, host your database in America
danulqua
danulqua16mo ago
It's better to change deployment provider, yeah?
Adam
Adam16mo ago
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
danulqua
danulqua16mo ago
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.
Adam
Adam16mo ago
It's worth a shot, creating databases is easy on Railway
danulqua
danulqua16mo ago
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!
Adam
Adam16mo ago
Of course! Happy to help. I'm glad it worked out
danulqua
danulqua16mo ago
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.
Adam
Adam16mo ago
Yes, there are Pro and Enterprise plans available
danulqua
danulqua16mo ago
Great, thank you!
Adam
Adam16mo ago
Railway
Pricing
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Want results from more Discord servers?
Add your server