Skip to content

Latest commit

 

History

History
164 lines (125 loc) · 11 KB

File metadata and controls

164 lines (125 loc) · 11 KB

📚 Sample Catalog

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

Durable Functions

Pattern .NET Python Java JavaScript
Hello Cities (Quickstart)
Fan-out/Fan-in
Order Processor
Saga Pattern
Distributed Tracing
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

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
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

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.