Skip to content

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.

License

Notifications You must be signed in to change notification settings

elasticjava/restate

 
 

Repository files navigation

Documentation Examples Discord Twitter

Restate - Building resilient applications made easy!

Restate overview

Easily build workflows, event-driven applications, and distributed services in a fault-tolerant manner with durable async/await.

Restate is great at building:

Get started with Restate

  1. 🏎 Check out our quickstart to get up and running with Restate in 2 minutes!
  2. 💡 The tour of Restate walks you through all features of Restate.

SDKs

Restate supports the following SDKs:

Install

We offer pre-built binaries of the CLI and the server for MacOS and Linux.

Install the server

Install via Homebrew:

brew install restatedev/tap/restate-server

Run via npx:

npx @restatedev/restate-server

Run via docker:

docker run --rm -it --network=host docker.io/restatedev/restate:latest

Install the CLI

Install via Homebrew:

brew install restatedev/tap/restate

Install via npm:

npm install --global @restatedev/restate

Run via npx:

npx @restatedev/restate

You can also download the binaries from the release page or our download page.

Community

Core primitives

The basic primitives Restate offers to simplify application development are the following:

  • Reliable Execution: user code will always run to completion. Intermediate failures result in re-tries that use the durable execution mechanism to recover partial progress and not duplicate already executed steps.
  • Suspending User Code: long-running user code suspends when awaiting on a promise and resume when that promise is resolved.
  • Reliable Communication: user code communicates with exactly-once semantics. Restate reliably delivers messages and anchors both sender and receiver in the durable execution to ensure no losses or duplicates can happen.
  • Durable Timers: user code can sleep (and suspend) or schedule calls for later.
  • Isolation: user code can be keyed, which makes Restate scheduled them to obey single-writer-per-key semantics.
  • Consistent State: keyed user code can attach key/value state, which is eagerly pushed into handlers during invocation, and written back upon completion. This is particularly efficient for FaaS deployments (stateful serverless, yay!).
  • Observability & Introspection: Restate automatically generates Open Telemetry traces for the interactions between handlers and gives you a SQL shell to query the distributed state of the application.

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 and tips for local development to get started.

Building Restate locally

In order to build Restate locally follow the build instructions.

About

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.5%
  • Just 0.2%
  • Lua 0.1%
  • Dockerfile 0.1%
  • JavaScript 0.1%
  • Smarty 0.0%