4 ms·
How is this different from the Durable Promises idea by ResonateHQ? It seams to me a bitter easer to get started with as a small standalone project. Would you m
by FjordWarden 2y ago
How is this different from the Durable Promises idea by ResonateHQ?
It seams to me a bitter easer to get started with as a small standalone project.
Would you mind comparing this solutions to that?
- NathanFlurry 2y agoI skimmed a bit about Durable Promises, and if I understand correctly, they’re similar to workflow tools like Temporal but come with high-quality language bindings that let you write workflow steps using async/await. We built something almost identical in Rust to let us use async/await for long-running & failure-prone workflows. This powers almost everything we do at Rivet. We have a technical writeup coming later, but here's a couple links of interest: - Rough overview: https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa36e46ebb4c04da44a1e6/docs-internal/libraries/workflow/OVERVIEW.md https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa3... - Example async/await-heavy workflow: https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa36e46ebb4c04da44a1e6/packages/services/linode/src/workflows/server/mod.rs#L97 https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa3... - Example actor-like workflow: https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa36e46ebb4c04da44a1e6/packages/services/pegboard/src/workflows/client.rs#L16 https://github.com/rivet-gg/rivet/blob/58b073a7cae20adcf0fa3... Rivet Actors can start, stop, or crash at any time and still continue functioning, much like Durable Promises. However, their scope differs: Rivet Actors are broader and designed for anything stateful & realtime, while Durable Promises seem focused on workflows with complex control flow. Rivet Actors can (and likely will) support workflow-like applications in the future, since state management and rescheduling are already built-in. For a deeper dive, Temporal has a writeup comparing actors and workflows: https://temporal.io/blog/workflows-as-actors-is-it-really-possible https://temporal.io/blog/workflows-as-actors-is-it-really-po...