Skip to main content
In this quickstart, you run a Greeter service with Restate, send it a request, and see how Restate retries a failing step without repeating the steps that already completed. The service listens on port 9080 and responds to a greet request with You said hi to <name>!. curl sends a request to the Restate Server on localhost:8080, which keeps a journal. Restate invokes Greeter/greet in your service on localhost:9080, which runs the steps Notification, a one second sleep, and Reminder. The Restate UI runs on localhost:9070.

Start from a prompt

Paste this prompt into your coding agent, such as Claude Code or Codex. The coding agent asks which SDK you want to use, downloads the matching template, installs the Restate skills, and runs the Greeter service.

Set up and run a Restate Greeter service from a template.

Add the Restate skills to your coding agent

Every Restate template includes the Restate plugin for Claude Code and Codex. When you open a template with one of these coding agents, the agent loads the Restate skills and can search the Restate documentation through the restate-docs MCP server. For other coding agents, add the Restate skills in the template directory:
To add the plugin to an existing project, see Develop with AI.

Start manually

Select your SDK:
Select your favorite runtime:
Prerequisites:
1

Install Restate Server & CLI

Restate is a single self-contained binary. No external dependencies needed.
Start the server:
You can find the Restate UI running on port 9070 (http://localhost:9070) after starting the Restate Server.
2

Get the Greeter service template

3

Run the Greeter service

4

Register the service

Tell Restate where the service is running, so Restate can discover and register the services and handlers behind this endpoint. You can do this via the UI (http://localhost:9070) or via:
If you run Restate with Docker, register http://host.docker.internal:9080 instead of http://localhost:9080.
When using Restate Cloud, your service must be reachable from your Restate environment. You can use a public endpoint or connect a private service through a supported secure tunnel.
5

Send a request to the Greeter service

Invoke the service via the Restate UI playground: go to http://localhost:9070, click on your service and then on playground.Restate UI PlaygroundOr invoke via curl:
Expected output: You said hi to Sarah!
6

See the invocation in the Restate UI

Open the Restate UI at http://localhost:9070, and select Invocations > All in the sidebar. Select the invocation of the Greeter service to see its journal: Restate recorded the notification step, the one second sleep, and the reminder step, and how long each one took.Restate UI invocation page for Greeter greet with the status Succeeded after one attempt. The journal lists run Notification, sleep, run Reminder, and return on a timeline of about one second.
7

Congratulations, you just ran Durable Execution!

The invocation you just sent used Durable Execution to make sure the request ran till completion. For each request, it sent a notification, slept for a second, and then sent a reminder.
Send a request for Alice to see how the service behaves when it occasionally fails to send the reminder and notification:
Expected output:
You can see in the service logs and in the Restate UI how the request gets retried. On a retry, it skipped the steps that already succeeded.Restate UI Durable ExecutionEven the sleep is durable and tracked by Restate. If you kill/restart the service halfway through, the sleep will only last for what remained.
Restate persists the progress of the handler. Letting you write code that is resilient to failures out of the box. Have a look at the Durable Execution page to learn more.

Next steps

Key concepts

Learn how Durable Execution, services, and state work in Restate.

Tour of Workflows

Build a durable workflow step by step.

Develop with AI

Add the Restate plugin and skills to your coding agent.

Examples

Browse templates and examples for every SDK.