Sign In
Reference

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

Region selection

Automatic region selection

By default, actors will choose the optimal region based on the client's location.

Manually querying the optimal region

You can query the best regions for your actors using:

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

Configuring the actor's region

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

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...
  }
});
client.ts

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