๐Ÿ“š 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:

LanguageSampleDescription
.NETFunction ChainingSequential workflow with data transformation
PythonFunction ChainingSequential workflow basics
JavaFunction ChainingSequential workflow basics
JavaScriptFunction ChainingSequential workflow basics

๐Ÿ“‹ Samples by Pattern

A quick-reference matrix showing which patterns are available in each language and framework.

Durable Task SDKs

Pattern.NETPythonJavaJavaScript
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.NETPythonJavaJavaScriptPowerShell
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

SamplePatternDescription
Function ChainingFunction ChainingSequential workflow with data transformation
Fan-out/Fan-inFan-out/Fan-inParallel execution and result aggregation
Human InteractionHuman InteractionApproval workflow with external events and timeouts
Durable EntitiesDurable EntitiesFunds transfer using stateful distributed objects
Orchestration VersioningVersioningSafe evolution of running orchestrations
ASP.NET Web APIWeb APIWeb API running orchestrations
Scheduled TasksScheduled TasksRecurring background tasks with scheduled orchestrations
.NET Aspire IntegrationAspireLocal dev orchestration with Aspire
AI Agent ChainingAI AgentsMulti-agent workflow with research, content, and image agents
MonitoringMonitoringPeriodic polling pattern with ContinueAsNew
Sub-OrchestrationsSub-orchestrationsParent/child orchestration composition for order processing
Eternal OrchestrationsEternal OrchestrationsIndefinitely running orchestration with ContinueAsNew
OpenTelemetry TracingObservabilityDistributed tracing with OpenTelemetry and Jaeger
Large PayloadLarge PayloadBlob-backed payload externalization for orchestration inputs and outputs larger than 1 MB

Python

SamplePatternDescription
Function ChainingFunction ChainingSequential workflow basics
Fan-out/Fan-inFan-out/Fan-inParallel execution and result aggregation
Human InteractionHuman InteractionApproval workflow with external events and timeouts
Async HTTP APIAsync HTTP APIFastAPI with long-running operations
MonitoringMonitoringPeriodic polling pattern
Sub-orchestrationsSub-orchestrationsNested orchestration composition
Eternal OrchestrationsEternal OrchestrationsContinue-as-new pattern
Durable EntitiesDurable EntitiesCounter entity
Orchestration VersioningVersioningSafe evolution of running orchestrations
AI Research AgentAI AgentsAutonomous research agent with arXiv + LLM
Saga PatternSagaTravel booking with compensating transactions
OpenTelemetry TracingObservabilityDistributed tracing with OpenTelemetry and Jaeger

Java

SamplePatternDescription
Function ChainingFunction ChainingSequential workflow basics
Fan-out/Fan-inFan-out/Fan-inParallel execution and result aggregation
Human InteractionHuman InteractionApproval workflow with external events and timeouts
Async HTTP APIAsync HTTP APILong-running operations with HTTP polling
MonitoringMonitoringPeriodic polling pattern
Sub-orchestrationsSub-orchestrationsNested orchestration composition
Eternal OrchestrationsEternal OrchestrationsContinue-as-new pattern

JavaScript

SamplePatternDescription
Function ChainingFunction ChainingSequential workflow basics with JavaScript SDK
Fan-out/Fan-inFan-out/Fan-inParallel execution and result aggregation with JavaScript SDK

Durable Functions

.NET

SamplePatternDescription
Hello CitiesQuickstartBasic orchestration with 3 activities
Order ProcessorOrder WorkflowEnd-to-end order processing workflow
Saga PatternSagaCompensating transactions for distributed operations
Aspire IntegrationAspireAzure Functions + DTS with Aspire
Large PayloadLarge PayloadSingle round-trip orchestration that externalizes payloads larger than 1 MB to blob storage
Large Payload Fan-out/Fan-inLarge PayloadParallel orchestration that externalizes payloads larger than 1 MB for each activity result
PDF SummarizerAI PipelineAI-powered document processing pipeline
AI Travel PlannerAI AgentsMulti-agent travel planning orchestration
Distributed TracingObservabilityDistributed tracing with Application Insights and Jaeger

Python

SamplePatternDescription
PDF SummarizerAI PipelineAI-powered PDF summarization
Fan-out/Fan-inFan-out/Fan-inParallel processing with result aggregation

Java

SamplePatternDescription
Hello CitiesFunction Chaining, Fan-out/Fan-inJava quickstart with sequential and parallel orchestration patterns

JavaScript

SamplePatternDescription
Hello CitiesFunction Chaining, Fan-out/Fan-inJavaScript quickstart with sequential and parallel orchestration patterns

PowerShell

SamplePatternDescription
Hello CitiesFunction Chaining, Fan-out/Fan-inPowerShell 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-framework repo and are included here via a Git submodule. Run git submodule update --init external/agent-framework after cloning.

๐Ÿ“‚ Full details and sample index โ†’

Durable Agents (.NET)

SampleHostingDescription
Single AgentAzure FunctionsBasic durable agent with persistent sessions
Orchestration ChainingAzure FunctionsMulti-agent sequential orchestration
Orchestration ConcurrencyAzure FunctionsParallel agent execution (fan-out/fan-in)
Orchestration ConditionalsAzure FunctionsConditional routing between agents
Human-in-the-LoopAzure FunctionsAgent pauses for human approval
Reliable StreamingAzure FunctionsReal-time token streaming with durability
Single AgentConsole AppSame pattern without Azure Functions

Durable MAF Workflows (.NET)

SampleHostingDescription
SequentialAzure FunctionsOrder cancellation pipeline: look up โ†’ cancel โ†’ notify
ConcurrentAzure FunctionsFan-out to multiple expert agents, fan-in to aggregate
Human-in-the-LoopAzure FunctionsExpense reimbursement with multi-stage approvals
SequentialConsole AppSequential executor pipeline
Conditional EdgesConsole AppRuntime routing based on conditions

Durable Agents (Python)

SampleHostingDescription
Single AgentAzure FunctionsBasic durable agent with persistent sessions
Multi-Agent OrchestrationAzure FunctionsMultiple agents in a durable orchestration
Tool CallingAzure FunctionsAgent with function tools
Single AgentDurable Task SDKAgent hosted with DT SDK directly

Scenarios

SampleDescription
Autoscaling in ACAKEDA-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.