Couple questions regarding railway
Does railway have any built in functionality to "bundle" services together for load balancing/horizontal scaling/ geo-routing?
Additionally more or less the same question for Postgres databases, is there any built in functionality to facilitate having two instances of a database in different locations, the functionality to assist with replication/user routing?
Solution:Jump to solution
yes railway does have horizontal scaling, that setting can be found in the service settings, it's called replicas.
railway does not yet have native geo-routing, because they only support deploying the service to a single region, so for now you would have two main options:
- choose a single region that's closest to your average users locations.
- set up duplicate services yourself in the regions you'd like, then use cloudflare to do the geo-routing, it's not too complicated....
3 Replies
Project ID:
N/A
N/A
Solution
yes railway does have horizontal scaling, that setting can be found in the service settings, it's called replicas.
railway does not yet have native geo-routing, because they only support deploying the service to a single region, so for now you would have two main options:
- choose a single region that's closest to your average users locations.
- set up duplicate services yourself in the regions you'd like, then use cloudflare to do the geo-routing, it's not too complicated.
eventually railway will let you choose what regions to deploy the service to and they will take care of the geo-routing via their edge network.
there's nothing stopping you from deploying two postgres databases to two different regions, but you would have to come up with a way to connect to them and replicate the data across them as the database offerings are completely unmanaged