Possible to split next js into split locations?
nxfi777
PROOP

2 months ago

Wondering if this is possible, thanks 🙂

0 Replies


Or multiple deploy locations? Please clarify


nxfi777
PROOP

2 months ago

multi zones most likely


nxfi777
PROOP

2 months ago

basically a replica in a different region


nxfi777
PROOP

2 months ago

automatically georouted



nxfi777
PROOP

2 months ago

likely yes - is that a next instance you are running or something else entierly?


nxfi777
PROOP

2 months ago

the main issue is i feel like there would be ISR problems


Not Next, but still something Node-based

Deploying a service in multiple regions does mean that multiple (metal) servers are used
So the state of an service is never (automatically) synchronized

I don't see how ISR would be a problem (as long as you configure it correctly)


nxfi777
PROOP

2 months ago

it would need a shared cache/pub-sub so both regions see updates at the same time.


nxfi777
PROOP

2 months ago

but i guess thats pretty minor


nxfi777
PROOP

2 months ago

you reckon if i deploy a replica now I would get around the EU west outage right now?


iirc railway doesn't automatically reroute to a region that is up


so if you have a service deployed in the eu, it will still be routed there for eu users


nxfi777
PROOP

2 months ago

even if the edge is down?



nxfi777
PROOP

2 months ago

seems a bit silly


Room for improvement but that's how it is right now


nxfi777
PROOP

2 months ago

if i network through cloudflare you think it would route it based on whats not timeing out?


Might be possible, unsure as I don't know what Cloudflare offers for that stuff


nxfi777
PROOP

2 months ago

thanks for the help imma test it


nxfi777
PROOP

2 months ago

you work with railway? would be a good suggestion to have this


I still don't understand why you'd need to do this, unlikely that you have to


I don't — #🤗|feedback


nxfi777
PROOP

2 months ago

when one region regenerates a page, others don’t magically know about it, so caches diverge


That's why revalidate exists? It'll diverge but not for long


nxfi777
PROOP

2 months ago

^


Shouldn't be anything to worry abt


nxfi777
PROOP

2 months ago

okay so networking through cloudflare seemed to help


nxfi777
PROOP

2 months ago

or EU WEST is back up havent got a status update yet though


Recovering/fix implemented https://status.railway.com/


Loading...