Sign In

Edge Networking

Actors automatically run near your users on your provider's global network.

At the moment, edge networking is only supported on Rivet Cloud & Cloudflare Workers. More self-hosted platforms are on the roadmap.

Region selection

Automatic region selection

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

Under the hood, Rivet and Cloudflare use Anycast routing to automatically find the best location for the client to connect to without relying on a slow manual pinging process.

Manual region selection

The region an actor is created in can be overridden using region options:

TypeScript
import { createClient } from "@rivetkit/actors/client";
import type { registry } from "./src/index";

const client = createClient<typeof registry>(/* endpoint */);

// Create actor in a specific region
const actor = await client.example.get({
  create: {
    region: "atl"
  }
});

See Create Manage Actors for more information.

Suggest changes to this page