Sign In
More

Edge Networking

Actors run near your users on Rivet's global network by default.

Available regions

RegionLocation
atlAtlanta, Georgia, USA
bomMumbai, India
fraFrankfurt, Germany
gruSão Paulo, Brazil
laxLos Angeles, California, USA
osaOsaka, Japan
sinSingapore
sydSydney, 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.

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:

TypeScript
// Find the best region for your actor
const { region } = await client.regions.recommend({ project, environment });

Configuring the actor's region

The region an actor is created in can be overridden by defining create.region:

client.ts
const { actor } = await client.actors.create({
  project,
  environment,
  body: {
    tags: { name: "app" },
    buildTags: { name: "app" },
    region: region.id, // Specify the region ID here
    // Other configuration...
  }
});

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.

Suggest changes to this page