Actors run near your users on your provider’s global network (if supported).
By default, actors will choose the optimal region based on the client’s location.
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.
The region a actor is created in can be overridden using region options:
See Create & Manage Actors for more information.
See available regions here.
It’s common to need to display a list of available regions in your application.
When deployed to Rivet, you can fetch a full list of regions with the GET https://api.rivet.gg/regions
HTTP endpoint. See API documentation here.
We don’t recommend hard-coding the region list. This allows you to develop your application with a local development cluster.