๐ Sample Catalog
May 27, 2026 ยท View on GitHub
Explore a comprehensive collection of samples for building durable, fault-tolerant workflows with Azure Durable Task Scheduler. Whether you're just getting started or building advanced AI agents, there's a sample for you.
Prerequisites: Most samples require Docker to run the Durable Task Scheduler emulator locally. See each sample's README for specific setup instructions.
๐ Start Here
New to Durable Task Scheduler? Start with the Function Chaining sample in your preferred language:
| Language | Sample | Description |
|---|---|---|
| .NET | Function Chaining | Sequential workflow with data transformation |
| Python | Function Chaining | Sequential workflow basics |
| Java | Function Chaining | Sequential workflow basics |
| JavaScript | Function Chaining | Sequential workflow basics |
๐ Samples by Pattern
A quick-reference matrix showing which patterns are available in each language and framework.
Durable Task SDKs
| Pattern | .NET | Python | Java | JavaScript |
|---|---|---|---|---|
| Function Chaining | โ | โ | โ | โ |
| Fan-out/Fan-in | โ | โ | โ | โ |
| Human Interaction | โ | โ | โ | |
| Async HTTP API | โ | โ | ||
| Monitoring | โ | โ | โ | |
| Sub-orchestrations | โ | โ | โ | |
| Eternal Orchestrations | โ | โ | โ | |
| Saga Pattern | โ | |||
| Durable Entities | โ | โ | ||
| Orchestration Versioning | โ | โ | ||
| ASP.NET Web API | โ | |||
| Scheduled Tasks | โ | |||
| .NET Aspire Integration | โ | |||
| AI Agent Chaining | โ | |||
| AI Research Agent | โ | |||
| Large Payload | โ |
Durable Functions
| Pattern | .NET | Python | Java | JavaScript | PowerShell |
|---|---|---|---|---|---|
| Hello Cities (Quickstart) | โ | โ | โ | โ | |
| Fan-out/Fan-in | โ | โ | โ | โ | |
| Order Processor | โ | ||||
| Saga Pattern | โ | ||||
| Distributed Tracing | โ | ||||
| Large Payload | โ | ||||
| Large Payload Fan-out/Fan-in | โ | ||||
| PDF Summarizer | โ | โ | |||
| AI Travel Planner | โ | ||||
| Aspire Integration | โ |
Durable Task SDKs
.NET
| Sample | Pattern | Description |
|---|---|---|
| Function Chaining | Function Chaining | Sequential workflow with data transformation |
| Fan-out/Fan-in | Fan-out/Fan-in | Parallel execution and result aggregation |
| Human Interaction | Human Interaction | Approval workflow with external events and timeouts |
| Durable Entities | Durable Entities | Funds transfer using stateful distributed objects |
| Orchestration Versioning | Versioning | Safe evolution of running orchestrations |
| ASP.NET Web API | Web API | Web API running orchestrations |
| Scheduled Tasks | Scheduled Tasks | Recurring background tasks with scheduled orchestrations |
| .NET Aspire Integration | Aspire | Local dev orchestration with Aspire |
| AI Agent Chaining | AI Agents | Multi-agent workflow with research, content, and image agents |
| Monitoring | Monitoring | Periodic polling pattern with ContinueAsNew |
| Sub-Orchestrations | Sub-orchestrations | Parent/child orchestration composition for order processing |
| Eternal Orchestrations | Eternal Orchestrations | Indefinitely running orchestration with ContinueAsNew |
| OpenTelemetry Tracing | Observability | Distributed tracing with OpenTelemetry and Jaeger |
| Large Payload | Large Payload | Blob-backed payload externalization for orchestration inputs and outputs larger than 1 MB |
Python
| Sample | Pattern | Description |
|---|---|---|
| Function Chaining | Function Chaining | Sequential workflow basics |
| Fan-out/Fan-in | Fan-out/Fan-in | Parallel execution and result aggregation |
| Human Interaction | Human Interaction | Approval workflow with external events and timeouts |
| Async HTTP API | Async HTTP API | FastAPI with long-running operations |
| Monitoring | Monitoring | Periodic polling pattern |
| Sub-orchestrations | Sub-orchestrations | Nested orchestration composition |
| Eternal Orchestrations | Eternal Orchestrations | Continue-as-new pattern |
| Durable Entities | Durable Entities | Counter entity |
| Orchestration Versioning | Versioning | Safe evolution of running orchestrations |
| AI Research Agent | AI Agents | Autonomous research agent with arXiv + LLM |
| Saga Pattern | Saga | Travel booking with compensating transactions |
| OpenTelemetry Tracing | Observability | Distributed tracing with OpenTelemetry and Jaeger |
Java
| Sample | Pattern | Description |
|---|---|---|
| Function Chaining | Function Chaining | Sequential workflow basics |
| Fan-out/Fan-in | Fan-out/Fan-in | Parallel execution and result aggregation |
| Human Interaction | Human Interaction | Approval workflow with external events and timeouts |
| Async HTTP API | Async HTTP API | Long-running operations with HTTP polling |
| Monitoring | Monitoring | Periodic polling pattern |
| Sub-orchestrations | Sub-orchestrations | Nested orchestration composition |
| Eternal Orchestrations | Eternal Orchestrations | Continue-as-new pattern |
JavaScript
| Sample | Pattern | Description |
|---|---|---|
| Function Chaining | Function Chaining | Sequential workflow basics with JavaScript SDK |
| Fan-out/Fan-in | Fan-out/Fan-in | Parallel execution and result aggregation with JavaScript SDK |
Durable Functions
.NET
| Sample | Pattern | Description |
|---|---|---|
| Hello Cities | Quickstart | Basic orchestration with 3 activities |
| Order Processor | Order Workflow | End-to-end order processing workflow |
| Saga Pattern | Saga | Compensating transactions for distributed operations |
| Aspire Integration | Aspire | Azure Functions + DTS with Aspire |
| Large Payload | Large Payload | Single round-trip orchestration that externalizes payloads larger than 1 MB to blob storage |
| Large Payload Fan-out/Fan-in | Large Payload | Parallel orchestration that externalizes payloads larger than 1 MB for each activity result |
| PDF Summarizer | AI Pipeline | AI-powered document processing pipeline |
| AI Travel Planner | AI Agents | Multi-agent travel planning orchestration |
| Distributed Tracing | Observability | Distributed tracing with Application Insights and Jaeger |
Python
| Sample | Pattern | Description |
|---|---|---|
| PDF Summarizer | AI Pipeline | AI-powered PDF summarization |
| Fan-out/Fan-in | Fan-out/Fan-in | Parallel processing with result aggregation |
Java
| Sample | Pattern | Description |
|---|---|---|
| Hello Cities | Function Chaining, Fan-out/Fan-in | Java quickstart with sequential and parallel orchestration patterns |
JavaScript
| Sample | Pattern | Description |
|---|---|---|
| Hello Cities | Function Chaining, Fan-out/Fan-in | JavaScript quickstart with sequential and parallel orchestration patterns |
PowerShell
| Sample | Pattern | Description |
|---|---|---|
| Hello Cities | Function Chaining, Fan-out/Fan-in | PowerShell quickstart with sequential and parallel orchestration patterns |
Durable Extension for Microsoft Agent Framework
The Durable Task extension for Microsoft Agent Framework lets you make any Microsoft Agent Framework agent durable with persistent sessions, built-in API endpoints, and distributed scaling โ without changes to your agent logic. It also supports graph-based workflows via WorkflowBuilder.
Setup: These samples live in the
microsoft/agent-frameworkrepo and are included here via a Git submodule. Rungit submodule update --init external/agent-frameworkafter cloning.
๐ Full details and sample index โ
Durable Agents (.NET)
| Sample | Hosting | Description |
|---|---|---|
| Single Agent | Azure Functions | Basic durable agent with persistent sessions |
| Orchestration Chaining | Azure Functions | Multi-agent sequential orchestration |
| Orchestration Concurrency | Azure Functions | Parallel agent execution (fan-out/fan-in) |
| Orchestration Conditionals | Azure Functions | Conditional routing between agents |
| Human-in-the-Loop | Azure Functions | Agent pauses for human approval |
| Reliable Streaming | Azure Functions | Real-time token streaming with durability |
| Single Agent | Console App | Same pattern without Azure Functions |
Durable MAF Workflows (.NET)
| Sample | Hosting | Description |
|---|---|---|
| Sequential | Azure Functions | Order cancellation pipeline: look up โ cancel โ notify |
| Concurrent | Azure Functions | Fan-out to multiple expert agents, fan-in to aggregate |
| Human-in-the-Loop | Azure Functions | Expense reimbursement with multi-stage approvals |
| Sequential | Console App | Sequential executor pipeline |
| Conditional Edges | Console App | Runtime routing based on conditions |
Durable Agents (Python)
| Sample | Hosting | Description |
|---|---|---|
| Single Agent | Azure Functions | Basic durable agent with persistent sessions |
| Multi-Agent Orchestration | Azure Functions | Multiple agents in a durable orchestration |
| Tool Calling | Azure Functions | Agent with function tools |
| Single Agent | Durable Task SDK | Agent hosted with DT SDK directly |
Scenarios
| Sample | Description |
|---|---|
| Autoscaling in ACA | KEDA-based dynamic worker scaling in Azure Container Apps |
Contributing a Sample
Want to add your own sample? See the Contributing Guide for guidelines on sample structure, documentation, and submission.