R
Railway17mo 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
Percy17mo ago
Project ID: 49e9aae3-10ff-4872-b34f-09cfc9d5fd8a
Adam
Adam17mo ago
Where are you located? Railway only has servers in US-West atm Or more importantly, where is your Database located?
danulqua
danulquaOP17mo ago
I'm in Ukraine. Database is eu-central-1, seems like not far away.
Adam
Adam17mo 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
danulquaOP17mo ago
It's better to change deployment provider, yeah?
Adam
Adam17mo 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
danulquaOP17mo 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
Adam17mo ago
It's worth a shot, creating databases is easy on Railway
danulqua
danulquaOP17mo 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
Adam17mo ago
Of course! Happy to help. I'm glad it worked out
danulqua
danulquaOP17mo 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
Adam17mo ago
Yes, there are Pro and Enterprise plans available
danulqua
danulquaOP17mo ago
Great, thank you!
Adam
Adam17mo 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