Can Railway go multi region
Building a video game. Wanted to deploy to multiple regions with a load balancer potentially.
There's some other solutions I've been looking at but Railway just makes things so easy.
23 Replies
Project ID:
N/A
ok
@Spacemandev - you can, you can deploy a workload on each region and then have Cloudflare LB your workloads
we don't auto multi-region, although our edge does proxy locally
(that burned us in today's outage fwiw)
how do i sepcify which region to deploy the service?
Are you in pro plan?
i can be, currently hobby
but happy to switch to pro for production
You've to upgrade to Pro plan, then you can switch your regions
ah that's why i wasn't seeing the region stuff
can databases also be horizontally scalable?
Also, regions are still in beta, you've to join the priority boarding
doing this region based load balancing with cloudflare also requires a paid cf account, I've set it up for a user so feel free to ask me questions!
you can, but it's not automatically, you've to setup a cluster yourself
DBs aren't HS due to the fact we can't mount many to 1 on volumes (yet)
out of beta
ohh they left? didn't see
Gotcha, I guess I’ll test with single Postgres instance and see if I need to move the db to something like cockroach cloud
What regions are available ?
Is there a recommended region to deploy the Postgres instance in if I’m deploying my service in each of the four regions ?
Or maybe it’s better if I just segment the users completely and host a Postgres instance in each instance with user data for that region
don't host your database and service in different regions, it'll increase the response time by a lot
if you need replication across regions, try turso.tech it's really simple to replicate
If you wanted to do that in a "Railway way", it would be a DB in each region and then WAL replicating
but DBs on Railway don't spark joy fwiw
railway managed db when
WAL ?
write access layer, a way to to sync DB writes in multiple DBs
Hmmm I think I can probably just segment the databases and not allow users from one region access to the other regions and that’ll be fine
Just do four deploys of the service plus db
Could even let people manually select region so don’t need to load balance
I think I have a deployment plan, thank you !
Sick, let us know how we can help, and can't wait to see what you build.