resonate-basic-ephemeral-world-usage-rust

Invoke and manage Resonate durable workflows from Rust clients.

6|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resonate-basic-ephemeral-world-usage-rust
Source: https://github.com/resonatehq/resonate-skills/tree/main/resonate-basic-ephemeral-world-usage-rust
Command: npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill shows how to initialize and use the Resonate Rust Client from the ephemeral world so Rust processes can register durable functions, invoke workflows, obtain handles, schedule jobs, and manage external promises without losing progress across crashes or restarts.

Core Features & Use Cases

  • Client initialization: local and remote Resonate client construction and environment-driven configuration.
  • Function registration & invocation: register #[resonate::function] handlers, call run/rpc, subscribe with get, and schedule cron jobs.
  • Integrations & promises: attach typed dependencies, use external promises for human-in-the-loop or webhook resumption, and perform graceful shutdown for worker binaries.

Quick Start

Initialize a Resonate client in your Rust binary, register your durable functions, and invoke them via run, rpc, or schedule to start durable workflows.

Frequently Asked Questions about resonate-basic-ephemeral-world-usage-rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke durable workflows from a Rust background worker?

To invoke durable workflows from a Rust background worker, initialize a Resonate client, register your functions, and use run or rpc calls. The client manages execution state so progress persists safely across process crashes or restarts.

Can I schedule cron jobs for durable workflows in Rust?

Yes, you can schedule cron jobs for durable workflows in Rust. The Resonate Rust SDK provides a schedule function that allows you to register and execute recurring durable functions directly from your Rust binaries or CLIs.

How do external promises work for resuming durable workflows in Rust?

External promises enable durable workflow resumption in Rust by allowing external events, such as webhooks or human-in-the-loop interactions, to signal and complete promises. This decouples external triggers from internal workflow execution state.

Does the Resonate Rust SDK support local client initialization and dependency injection?

Yes, the Resonate Rust SDK supports local client initialization via Resonate::new/local and dependency injection. You can attach typed dependencies to registered durable functions to integrate external services into your workflow environment.

What is the best way to gracefully shut down a Rust durable workflow worker?

The best way to gracefully shut down a Rust durable workflow worker is to use the stop API provided by the Resonate Rust SDK. This ensures active workflow executions are safely persisted before the binary terminates.