Skip to main content

Deno Deploy

You can run your Restate services as serverless functions on Deno Deploy.

You can easily get started using the Deno+Restate template:

CLI

restate example typescript-deno-hello-world &&
cd typescript-deno-hello-world

You can also add Restate into an existing Deno project. The SDK should be imported with the fetch component eg npm:@restatedev/restate-sdk@^1.4.0/fetch and you would serve with Deno.serve({ port: 9080 }, handler.fetch).

You can deploy to Deno Run with deployctl deploy, and register your deployed service:

CLI

restate deployments register https://my-service.deno.dev

Local development is as simple as running your main.ts and discovering the local port:

CLI

restate deployments register http://localhost:9080