https://github.com/restatedev/restate
Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
https://github.com/restatedev/restate
async-await cli consistent-state distributed-systems durable-execution event-driven microservices reliable-communication serverless workflow-engine
Last synced: 13 days ago
JSON representation
Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
- Host: GitHub
- URL: https://github.com/restatedev/restate
- Owner: restatedev
- License: other
- Created: 2023-01-04T15:03:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-26T16:31:39.000Z (8 months ago)
- Last Synced: 2025-06-26T17:38:12.500Z (8 months ago)
- Topics: async-await, cli, consistent-state, distributed-systems, durable-execution, event-driven, microservices, reliable-communication, serverless, workflow-engine
- Language: Rust
- Homepage: https://docs.restate.dev
- Size: 71 MB
- Stars: 2,491
- Watchers: 17
- Forks: 73
- Open Issues: 243
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://docs.restate.dev)
[](https://github.com/restatedev/examples)
[](https://discord.gg/skW3AZ6uGd)
[](https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA)
[](https://x.com/intent/follow?screen_name=restatedev)
# Restate - Building resilient applications made easy!
[Restate](https://restate.dev) is the simplest way to build resilient applications.
Restate provides a distributed durable version of your everyday building blocks, letting you build a wide range of use cases:
* [Durable AI Agents](https://github.com/restatedev/ai-examples)
* [Workflows-as-Code](https://docs.restate.dev/use-cases/workflows)
* [Microservice Orchestration](https://docs.restate.dev/use-cases/microservice-orchestration)
* [Event Processing](https://docs.restate.dev/use-cases/event-processing)
* [Async Tasks](https://docs.restate.dev/use-cases/async-tasks)
* [Agents, Stateful Actors, state machines, and much more](https://github.com/restatedev/examples)
## Get started with Restate
1. π [Follow the Quickstart](https://docs.restate.dev/get_started/quickstart) to get Restate up and running within 2 minutes!
1. π‘ [The Tour of Restate](https://docs.restate.dev/get_started/tour) walks you through the most important features of Restate.
## SDKs
Restate supports the following SDKs:
* [Typescript](https://github.com/restatedev/sdk-typescript)
* [Java and Kotlin](https://github.com/restatedev/sdk-java)
* [Python](https://github.com/restatedev/sdk-python)
* [Go](https://github.com/restatedev/sdk-go)
* [Rust](https://github.com/restatedev/sdk-rust)
## Install
We offer pre-built binaries of the CLI and the server for MacOS and Linux.
Have a look at the [Quickstart](https://docs.restate.dev/get_started/quickstart) or [installation instructions in the docs](https://docs.restate.dev/develop/local_dev).
### Install the server
Install via Homebrew:
```bash
brew install restatedev/tap/restate-server
```
Run via npx:
```bash
npx @restatedev/restate-server
```
Run via docker:
```bash
docker run --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 \
--add-host=host.docker.internal:host-gateway docker.restate.dev/restatedev/restate:latest
```
### Install the CLI
Install via Homebrew:
```bash
brew install restatedev/tap/restate
```
Install via npm:
```bash
npm install --global @restatedev/restate
```
Run via npx:
```bash
npx @restatedev/restate
```
You can also download the binaries from the [release page](https://github.com/restatedev/restate/releases) or our [download page](https://restate.dev/get-restate/).
## Community
* π€οΈ Join our online community on [Discord](https://discord.gg/skW3AZ6uGd) or [Slack](https://join.slack.com/t/restatecommunity/shared_invite/zt-2v9gl005c-WBpr167o5XJZI1l7HWKImA) for help, sharing feedback and talking to the community.
* π [Check out our documentation](https://docs.restate.dev) to get started quickly!
* π£ [Follow us on Twitter](https://twitter.com/restatedev) for staying up to date.
* π [Create a GitHub issue](https://github.com/restatedev/restate/issues) for requesting a new feature or reporting a problem.
* π [Visit our GitHub org](https://github.com/restatedev) for exploring other repositories.
## Core primitives
The basic primitives Restate offers to simplify application development are the following:
* **Reliable Execution**: Restate guarantees code runs to completion. Failures result in retries that use the [Durable Execution mechanism](https://docs.restate.dev/concepts/durable_execution) to recover partial progress and prevent re-executing completed steps.
* **Reliable Communication**: Services communicate with exactly-once semantics: whether it's [request-response, one-way messages, or scheduled tasks](https://docs.restate.dev/concepts/invocations). Restate reliably delivers messages and uses Durable Execution to ensure no losses or duplicates can happen.
* **Durable Promises and Timers**: Register Promises/Futures and timers in Restate to make them resilient to failures (e.g. sleep, webhooks, timers). Restate can recover them across failures, processes, and time.
* **Consistent State**: Implement [stateful entities](https://docs.restate.dev/concepts/services) with isolated K/V state per entity. Restate persists the K/V state updates together with the execution progress to ensure consistent state. Restate attaches the K/V state to the request on invocation, and writes it back upon completion. This is particularly efficient for FaaS deployments (stateful serverless, yay!).
* **Suspending User Code**: long-running code suspends when awaiting on a Promise/Future and resumes when that promise is resolved. This is particularly useful in combination with serverless deployments.
* **Observability & Introspection**: Restate includes a UI and CLI to inspect the [state of your application](https://docs.restate.dev/operate/introspection) across services and invocations. Restate automatically generates Open Telemetry traces for the interactions between handlers.
## Contributing
Weβre excited if you join the Restate community and start contributing!
Whether it is feature requests, bug reports, ideas & feedback or PRs, we appreciate any and all contributions.
We know that your time is precious and, therefore, deeply value any effort to contribute!
Check out our [development guidelines](/docs/dev/development-guidelines.md) and [tips for local development](/docs/dev/local-development.md) to get started.
## Versions
Restate follows [Semantic Versioning](https://semver.org/).
You can safely upgrade from a Restate `x.y` to `x.(y+1)` release without performing any manual data migration, as Restate performs an automatic data migration for you.
For SDK compatibility, refer to the supported version matrix in the respective READMEs:
* [Restate Java/Kotlin SDK](https://github.com/restatedev/sdk-java#versions)
* [Restate TypeScript SDK](https://github.com/restatedev/sdk-typescript#versions)
* [Restate Go SDK](https://github.com/restatedev/sdk-go#versions)
* [Restate Python SDK](https://github.com/restatedev/sdk-python#versions)
* [Restate Rust SDK](https://github.com/restatedev/sdk-rust#versions)
### Building Restate locally
In order to build Restate locally [follow the build instructions](https://github.com/restatedev/restate/blob/main/docs/dev/local-development.md#building-restate).