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
Percy
Percy10mo ago
Project ID: N/A
angelo
angelo10mo ago
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)
Spacemandev
Spacemandev10mo ago
how do i sepcify which region to deploy the service?
ThallesComH
ThallesComH10mo ago
Are you in pro plan?
Spacemandev
Spacemandev10mo ago
i can be, currently hobby but happy to switch to pro for production
ThallesComH
ThallesComH10mo ago
You've to upgrade to Pro plan, then you can switch your regions
Spacemandev
Spacemandev10mo ago
ah that's why i wasn't seeing the region stuff can databases also be horizontally scalable?
ThallesComH
ThallesComH10mo ago
Also, regions are still in beta, you've to join the priority boarding
Brody
Brody10mo ago
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!
ThallesComH
ThallesComH10mo ago
you can, but it's not automatically, you've to setup a cluster yourself
angelo
angelo10mo ago
DBs aren't HS due to the fact we can't mount many to 1 on volumes (yet) out of beta
ThallesComH
ThallesComH10mo ago
ohh they left? didn't see
Spacemandev
Spacemandev10mo ago
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 ?
ThallesComH
ThallesComH10mo ago
No description
Spacemandev
Spacemandev10mo ago
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
ThallesComH
ThallesComH10mo ago
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
angelo
angelo10mo ago
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
ThallesComH
ThallesComH10mo ago
railway managed db when
Spacemandev
Spacemandev10mo ago
WAL ?
angelo
angelo10mo ago
write access layer, a way to to sync DB writes in multiple DBs
Spacemandev
Spacemandev10mo ago
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 !
angelo
angelo10mo ago
Sick, let us know how we can help, and can't wait to see what you build.
Want results from more Discord servers?
Add your server