Sign In
More

Edge Networking

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

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 a actor is created in can be overridden using region options:

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

const client = createClient<App>(/* 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