Course contentsShow
← Cloud and Infrastructure
Lesson 2523 of 2,98954. Serverless ArchitecturesFree lesson

Azure Durable Functions

Introduction to Azure's orchestration framework, orchestrator functions, and stateful workflow patterns.

Azure Durable Functions

You'll learn how Azure's orchestration framework enables stateful, long-running serverless workflows through orchestrator functions.

What Are Azure Durable Functions?

Azure Durable Functions extends Azure Functions with the ability to write stateful workflows in code. While standard Azure Functions are stateless and event-driven, Durable Functions let you define complex orchestrations that coordinate multiple function calls, maintain state across retries, and wait for external events—all while being serverless.

Think of it like a restaurant manager coordinating a complex dinner service: they remember which orders are pending, which dishes are ready, and orchestrate the timing between kitchen stations—even if they step away momentarily. The framework automatically checkpoints progress, so if anything fails, the workflow resumes from where it left off.

Core Components

Orchestrator Functions are the heart of the system. They define your workflow logic using special APIs that the Durable Functions runtime understands. These functions can:

  • Call activity functions sequentially or in parallel
  • Wait for external events or timers
  • Automatically retry failed operations
  • Maintain workflow state without you managing storage

Activity Functions perform the actual work—calling APIs, processing data, or updating databases. The orchestrator coordinates when and how these execute.

Stateful Workflow Patterns

The framework natively supports patterns you've seen before:

  • Function chaining (sequential steps)
  • Fan-out/fan-in (parallel processing then aggregation)
  • Async HTTP APIs (long-running operations with status polling)
  • Human interaction (wait for external approvals or events)

The runtime handles all state persistence, checkpointing, and replay logic automatically using Azure Storage or other backends.

Key Takeaway: Azure Durable Functions brings orchestration and stateful workflows to serverless computing by automatically managing state, retries, and coordination between multiple function executions through code-based orchestrator patterns.