ORCHCRAFTThe Orchestration Reference
Understand orchestration patterns.
Choose the architecture that fits the workflow.
NeedLong-running workflows
Capabilitypersistent execution state + resume after failure
PatternDurable Execution
ImplementationTemporal
Explore patterns
You know the architecture problem. Go straight to the pattern.
Control flow
Start with a requirement
You know what the system must do. Find the pattern that delivers it.
- Long-running workflowsA workflow runs for hours or days and must survive restarts and deploys.→ Durable Execution
- Parallel workSeveral workers must execute in parallel and rejoin.→ Fan-out / Fan-in
- Human approvalA human must approve before execution continues.→ Human-in-the-loop
- Failure recoveryI need retries that survive process restarts.→ Durable Execution, Retry & Fallback
- Multi-agent coordinationOne controller delegates work to specialist agents.→ Supervisor
- Distributed transactionsMultiple services participate in one business transaction.→ Saga / Compensation
- Persistent execution stateExecution state must persist between steps and across failures.→ Checkpointing, Durable Execution
- Dynamic routingThe next step depends on runtime state.→ Router, State Machine