Resonate documentation

Resonate is a dead simple durable execution framework for building reliable and scalable cloud applications with a delightful developer experience. Build agents, workflows, pipelines, and services without thinking about retries or recovery. Resonate handles the hard parts of distributed systems—you focus on your application logic.
Complex problems, simple code. Write functions that scale across dozens or hundreds of machines and run for hours, days, weeks, or months, in just a few lines of code.
// An AI agent that recursively spawns subagents
function* agent(context: Context, prompt: string) {
const messages = [{ role: "user", content: prompt }];
// The agent loop
while (true) {
const response = yield* context.run(think, messages);
messages.push(response);
if (response.subprompts) {
// Spawn concurrent subagents
const futures = [];
for (const subprompt of response.subprompts) {
futures.push(yield* context.beginRpc(agent, subprompt));
}
// Collect results
for (const future of futures) {
messages.push({ role: "tool", content: yield* future });
}
} else {
return response.content;
}
}
}
Evaluate Resonate
If you are considering using Resonate, this section may help you better understand its capabilities and how you can benefit, especially if you are coming from another Durable Execution platform.
Get started
If you are ready to start using Resonate, this section will guide you through the initial steps, whether you are starting from scratch or migrating from another platform.
Examples
Clone and explore example projects that demonstrate common use cases and patterns like durable sleep, human-in-the-loop, and AI agents.
Tutorials
Step-by-step tutorials to deepen your understanding of Resonate concepts, best practices, and how things work.
Developer reference
If you are building applications with Resonate, this section provides quick-reference information on the most commonly used features and APIs.
Operational guidance
If you are ready to deploy a Resonate application to production, this section will help you understand how to operate your system, including monitoring, scaling, and troubleshooting.