Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Cloud and platforms

Step Functions vs Durable Functions vs Google Workflows: Limits and Retries

In short

Step Functions Standard and Google Workflows both end an execution at one year, and Step Functions Express at five minutes. An Azure Durable Functions orchestration can run for years, Microsoft says, but its orchestrator replays from the start and must be deterministic. The first ceilings differ: 25,000 history events on Standard and 256 KiB per state on Step Functions, 100,000 steps and 512 KB of variables on Workflows.

Which Durable Functions does this page compare?

Two products now share the name. Azure Durable Functions is an extension of Azure Functions written as orchestrator, activity and entity functions, and Microsoft now recommends the Durable Task Scheduler as its backend. AWS Lambda durable functions run inside Lambda, using checkpoints and replay, for up to one year.

Here the comparison is Azure Durable Functions, with a line on the Lambda product where it differs. AWS frames the choice between Lambda durable functions and Step Functions as code inside Lambda versus a standalone service with native integrations to more than 220 AWS services.

Checked against: source 9, source 26, source 28

How long can one execution run, and what ends it first?

Step Functions Standard workflows run for up to one year and Express workflows for five minutes; past either, the execution fails with States.Timeout. History can end a Standard execution sooner: at 25,000 events in one execution history, the execution fails. An Inline Map adds every iteration to the parent history and runs at most 40 at once. A Distributed Map starts child executions with their own histories, up to 10,000 in parallel.

Google Workflows also ends an execution at one year and allows at most 100,000 steps in it. Azure Durable Functions states no maximum duration on the pages I read; Microsoft says an orchestration can run for years or as an eternal orchestration. Its limit is softer: history grows with each scheduled task, and an eternal orchestration calls continue-as-new to reset it under the same instance ID.

Lambda durable functions set an execution timeout, 24 hours by default. The concepts page calls its maximum one year in prose and gives 31,622,400 seconds (366 days) for the setting, while each invocation still obeys the function timeout.

Checked against: source 1, source 2, source 6, source 7, source 11, source 15, source 20, source 27

How much data can pass between steps?

Step Functions caps the input or output of any task, state or execution at 256 KiB. Going over raises States.DataLimitExceeded, which a States.ALL catcher does not catch; you have to name it. Workflows allows 512 KB for all variables, arguments and events of one execution, 256 KB per string, and HTTP responses up to 2 MB, which count against that memory once stored.

Azure Durable Functions moves the limit into its backend. The Azure Storage provider compresses anything over 45 KB serialized and stores it in a blob. With the Durable Task Scheduler, .NET isolated C# apps can turn on large payload support, which moves payloads over a set threshold to Blob Storage; Microsoft's samples use 256 KiB, below the 1 MiB scheduler message boundary. Microsoft suggests storing large data yourself and passing references; I would plan that on all three.

Checked against: source 2, source 3, source 16, source 17, source 20

How are retries and error catching declared?

Step Functions puts Retry and Catch arrays on Task, Parallel and Map states. A retrier defaults to a 1-second first interval, 3 attempts and a backoff rate of 2.0. A States.Runtime error is never retried. Standard workflows run each state exactly once unless a retry is defined; asynchronous Express runs at least once and synchronous Express at most once.

Workflows wraps steps in try, retry and except blocks. Its http.default_retry policy retries 429, 502, 503, 504, connection errors and timeouts up to 5 times, starting at 1 second with a 1.25 multiplier and a 60-second cap. The non-idempotent variant retries only 429, 503 and connection failures.

Azure Durable Functions uses the language's own try and catch, and activity failures reach the orchestrator as exceptions. Its retry options default to a backoff coefficient of 1, so the interval stays flat, and the retry timeout is unlimited by default, leaving the maximum number of attempts as the limit.

When an event router starts the workflow, the router's own delivery retries come before any of these; EventBridge, Event Grid and Eventarc retries puts those defaults side by side.

Checked against: source 1, source 3, source 12, source 21, source 22

What must orchestrator code never do?

In Azure Durable Functions the orchestrator re-executes from the start whenever it wakes and rebuilds its state from history, so every replay must produce the same result. Microsoft also warns that code changes can break the replay of orchestrations already running.

Lambda durable functions carry the same rule: code must be deterministic during replay, so random numbers and clock reads belong inside steps. Step Functions and Workflows run definitions written in Amazon States Language or in YAML or JSON, and the pages I read set no replay rules for them.

Inside an Azure orchestrator, Microsoft's constraints page rules out the following.

  • Current-time APIs: read the time from the orchestration context instead.
  • Random GUIDs or random numbers: use the context's NewGuid() or an activity.
  • I/O, bindings, network calls, static or environment variables: move them to activities or pass them as input.
  • Sleep and other non-durable async work: use durable timers and the SDK's scheduling APIs.
  • async orchestrators in JavaScript or Python: declare them as generators.

Checked against: source 1, source 10, source 11, source 20, source 27

How does each engine wait for a timer or an outside signal?

A Step Functions Wait state pauses for up to one year on Standard and five minutes on Express. A Standard task with .waitForTaskToken pauses until a caller returns the token with SendTaskSuccess or SendTaskFailure; Express supports only Request Response integrations. A heartbeat timeout keeps a lost token from holding the task for a year. If API Gateway starts a synchronous Express workflow, I would also check the gateway integration timeout.

Azure Durable Functions uses durable timers, limited to six days in JavaScript, Python and PowerShell; up-to-date .NET and Java apps allow arbitrarily long ones. Waiting for an external event has no built-in deadline. An event raised before the orchestrator listens is buffered, and one sent to a missing instance ID is discarded.

Workflows calls sys.sleep for up to 31,536,000 seconds, one year, or creates a callback endpoint and waits on it, by default for 43,200 seconds (12 hours) before a TimeoutError. Sleeping and waiting executions still count toward the concurrent-executions quota, 10,000 per region per project by default.

Checked against: source 1, source 4, source 5, source 13, source 14, source 20, source 23, source 24

Which billing dimension does each one count?

The table lists dimensions only, not prices. Step Functions and the Durable Task Scheduler both say the compute you call is billed separately; the function limits and billing comparison covers those meters.

Azure Durable Functions stops billing while an orchestrator awaits or yields, and Lambda durable waits carry no duration charge on on-demand functions. Express bills duration from start to finish, so I read a Wait state there as running the meter. On Workflows, a callback wait is an external step.

EngineWhat is countedWatch for
Step Functions StandardState transitions across all state machinesEach retry is an extra transition
Step Functions ExpressRequests, duration rounded up to 100 ms, memory in 64 MB chunksMemory grows with definition size, Map or Parallel states and payload
Google WorkflowsSteps executed, split into internal and external, in increments of 1,000Failed steps and every retry attempt count
Azure Durable FunctionsAzure Functions billing plus the backend: scheduler actions or capacity units, or Azure Storage transactionsOn the Consumption plan each replay is a billable invocation
Lambda durable functionsLambda compute, durable operations, GB written and GB-month retainedCompute for replays is billed

Checked against: source 8, source 18, source 19, source 25, source 29

What else do people ask?

Can a Step Functions workflow type be changed later?

No. AWS says the type cannot be updated after the state machine is created, so pick Standard or Express before the first deploy.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Put together from AWS, Microsoft Learn and Google Cloud pages on Step Functions, Lambda durable functions, Azure Durable Functions and Cloud Workflows, read on 21 Nov 2026. No workflow was built or run for it, so limits and replay rules are quoted, not observed. Prices, throughput quotas, Logic Apps and the Durable Task SDKs outside Azure Functions are not covered. Found a mistake? Tell me.

Keep reading

Next step

Have a project in mind?

Tell me about it. A discovery call within 48 hours.