@resonatehq/sdk

Resonate TypeScript SDK

cicd codecov License

Docs   •   Twitter   •   Discord   •   Issues   •   Roadmap

Distributed Async Await

Resonate's Distributed Async Await is a new programming model that simplifies coding for the cloud. It ensures code completion even if hardware or software failures occur during execution. The programming model does this with just functions and promises, making it trivial to build coordinated and reliable distributed applications.

Why Resonate?

  • Cloud Computing Made Dead Simple: Resonate simplifies coding for the cloud using an intuitive paradigm you already know — async await.

  • Single Binary: Resonate simplifies your deployment and operations with a single binary.

  • Incremental Adoption and No Vendor Lock-In: Resonate was designed to allow for incremental adoption without vendor lock-in ever.

  • Built on an Open Standard: Resonate's programming model is built on top of durable promises, an open standard with an intentionally minimal API surface area.

Getting Started

  1. Start building in just 30 seconds with our quickstart guide!
  2. Explore in-depth code examples and get your hands dirty with our comprehensive repository.
  3. Dive into the TypeScript SDK docs and learn how to leverage its full potential with our detailed documentation.
  4. Explore the API reference of Resonate's TypeScript SDK.
  5. Grasp the 4 core concepts of distributed async/await applications by delving into our concepts page.

Core features

The basic features Resonate offers to simplify the reliability and coordination of distributed processes are the following:

  • Retries: If a process fails while executing a durable promise due to a transient issue, such as network connectivity problems, it can be transparently retried, minimizing the impact of temporary failures.

  • Recoverability: If a process crashes while executing a durable promise, it can recover and continue from where it left off, ensuring your application remains resilient.

  • Schedules: Durable promises can be used to schedule statefule reminders using a simple HTTP/gRPC call.

  • Task Framework: Durable promises allow you to fan out tasks across multiple processes or machines, enabling parallel execution and load balancing, making your application more scalable.

  • Notifications: When a durable promise is created or completed, it can trigger notifications to other processes or services that are interested in the result, enabling efficient communication and coordination.

  • Human in the Loop: Durable promises can seamlessly integrate human input into your automated workflows, allowing for manual intervention or approval steps when needed.

Contributing

See our contribution guidelines.

License

The Resonate TypeScript SDK is available under the Apache 2.0 License.