Durable Functions

Definition

An Azure Functions extension for writing stateful, long-running workflows in code, enabling complex orchestration and event-driven applications.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between Durable Functions and Azure Functions?
Azure Functions runs individual stateless functions in response to events such as HTTP requests, timers, or queue messages. Durable Functions adds orchestration and state management on top of Azure Functions, so you can build workflows that pause, wait, retry, branch, or run for a long time without manually storing state yourself.
When should I use Durable Functions?
Use Durable Functions when your process has multiple steps, needs to keep track of progress, or must wait between steps. Common examples include approval workflows, order processing, scheduled reminders, fan-out data processing, and API workflows that take minutes or hours to finish. If your logic is a single short task with no saved state, regular Azure Functions is usually simpler.
How much does Durable Functions cost?
Cost depends on the Azure Functions hosting plan and the amount of execution and storage used. On the Consumption plan, you typically pay for function executions, execution time, and memory, plus storage transactions because Durable Functions stores orchestration history and state in a backing store such as Azure Storage. Long-running workflows can be cost-effective because they do not need a server running continuously, but very chatty workflows with many steps or state updates can increase storage and execution costs.

Category: software

Difficulty: advanced

Related Terms

See Also