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.
New to Durable Task Scheduler? Start with the Function Chaining sample in your preferred language:
A quick-reference matrix showing which patterns are available in each language and framework.
| 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 |
✅ |
|
|
|
| Pattern |
.NET |
Python |
Java |
JavaScript |
| 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 |
✅ |
|
|
|
| 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 |
| 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 |
| Sample |
Pattern |
Description |
| PDF Summarizer |
AI Pipeline |
AI-powered PDF summarization |
| Fan-out/Fan-in |
Fan-out/Fan-in |
Parallel processing with result aggregation |
| Sample |
Pattern |
Description |
| Hello Cities |
Function Chaining, Fan-out/Fan-in |
Java quickstart with sequential and parallel orchestration patterns |
| Sample |
Pattern |
Description |
| Hello Cities |
Function Chaining, Fan-out/Fan-in |
JavaScript quickstart with sequential and parallel orchestration patterns |
| Sample |
Description |
| Autoscaling in ACA |
KEDA-based dynamic worker scaling in Azure Container Apps |
Want to add your own sample? See the Contributing Guide for guidelines on sample structure, documentation, and submission.