Edge Networking
Actors run near your users on Rivet's global network by default.
Available regions
Region | Location |
---|---|
atl | Atlanta, Georgia, USA |
bom | Mumbai, India |
fra | Frankfurt, Germany |
gru | São Paulo, Brazil |
lax | Los Angeles, California, USA |
osa | Osaka, Japan |
sin | Singapore |
syd | Sydney, Australia |
Don't hardcode regions
Dynamically fetching the region list allows you to support more region & develop locally. See Fetching region list for more information.
Region selection
Automatic region selection
By default, actors will choose the optimal region based on the client's location.
Note
Under the hood, Rivet uses Anycast routing to automatically find the best location for the client to connect to without relying on slow & expensive manual pinging process.
Manually querying the optimal region
You can query the best regions for your actors using:
Configuring the actor's region
The region an actor is created in can be overridden by defining create.region
:
Fetching region list
It's common to need to display a list of available regions in your application.
To fetch a full list of regions, see regions.list
. This list is returned in order of best to worst for the client.