Examples | Get started with Resonate
Runnable example projects, one per pattern.
Runnable example projects, one per pattern. Clone, read, modify.
Hello world
Your first durable workflow — register, invoke, checkpoint.
Durable sleep
Sleep that survives process restarts — minutes to weeks.
Human-in-the-loop
Pause a workflow until a human responds.
Async RPC
Durable function invocations between services.
Async HTTP API endpoints
Long-running HTTP work without holding the connection.
Load balancing
Service discovery and dispatch across worker instances.
Fan-out / fan-in
Spawn N tasks in parallel, collect their results. Each branch is durable.
Recursive factorial
Recursion that fans out across worker instances.
Schedule
Cron-shaped, durable, with crash recovery built in.
Money transfer
Saga pattern with idempotent retries — debit, credit, no double-spend.
Webhook handler
Exactly-once webhook processing — duplicate deliveries dedupe by event ID.
Multi-agent orchestration
Researcher → writer → reviewer with durable handoffs between agents.
Deep research agent
Recursive research that spawns parallel subagents.
Async agent tools
Async tools called from an agent loop with status polling.
Kafka worker
Stream processing with durable per-message workflows. Works with Kafka or Redpanda.
Cloud Run workers
Cloud Run worker that survives cold starts and instance restarts.
Lambda workers
Lambda as a stateless trigger for durable workflows.