6 months ago
I have deployed my Django app from GitHub using Railway. My Postgres database is also on Railway and both the deployed app and the database's regions are EU West, Amsterdam and both are run on the new Metal infrastructure. I am currently on the Hobby plan.
However, when I run the app on web, the server response varies from 2 to 4 seconds, which is pretty slow for a simple portfolio webpage and a relatively small database.
When I run the app locally on the same Postgres database, the server response is around 800ms, which is not ideal but pretty faster.
Does anyone have any idea what causes this and how could I fix it?
Thankssssssss!! :))
2 Replies
6 months ago
Hello,
You do not have all your services in the same Metal region, and you are not using the private network for database communications, please make those changes and report back.
Best,
Brody
Status changed to Awaiting User Response Railway • 6 months ago
brody
Hello,You do not have all your services in the same Metal region, and you are not using the private network for database communications, please make those changes and report back.Best,Brody
5 months ago
private network solved the issue! thank you so so much!!
Status changed to Awaiting Railway Response Railway • 6 months ago
Status changed to Solved chandrika • 6 months ago