AWS Lambda Durable Functions Explained: Pricing, Limits, vs Step Functions and the New MicroVM Preview
AWS Lambda durable functions explained: $8 per million operations, 1-year executions, 30-minute invocations, Step Functions comparison and MicroVM preview.

AWS Lambda durable functions are ordinary Lambda functions that can save their progress and run a multi-step workflow for up to a year. You pay for the compute time your code actually runs, plus $8 per million "durable operations" and small storage charges. On 25 November 2026, AWS added a developer preview that lets a durable function create and manage Lambda MicroVMs, which makes it possible to orchestrate sandboxed jobs like CI runs or AI-generated code from inside Lambda.
This guide covers what durable functions are, what they cost, the limits that matter (including the 30-minute per-invocation timeout), how they compare with Step Functions, and what the new MicroVM preview adds. All prices are AWS list prices for US East (N. Virginia) in USD, taken from AWS's pricing pages on 26 November 2026.
What are Lambda durable functions?
AWS announced durable functions on 2 December 2025 at re:Invent. In AWS's own words, they let you "build resilient multi-step applications and AI workflows that can execute for up to one year while maintaining reliable progress despite interruptions."
Here's how they work. You wrap your normal Lambda handler with the Durable Execution SDK. Inside it, you put each piece of work in a step. Each time a step finishes, Lambda saves (checkpoints) its result.
If the function is interrupted, or pauses with a wait, Lambda runs it again from the top. This is called replay. During replay, the code skips any step that already finished and reuses the saved result. You write ordinary sequential code, and Lambda handles retries and saved state for you.
The key benefit: while a function is waiting, it's suspended and doesn't incur compute charges. That's useful for a human approval that takes three days, or for polling an external job that runs overnight.
The building blocks (durable operations)
According to the Lambda SDK documentation, the DurableContext gives you these operations:
| Operation | What it does |
|---|---|
| Step | Runs a unit of work and checkpoints it, with retry options |
| Wait | Pauses for a set duration without consuming compute |
| Wait for Condition | Polls for a condition, checkpointing between attempts |
| Callback | Pauses until an external system responds through the Lambda API |
| Invoke | Calls another Lambda function and waits for its result |
| Parallel | Runs several operations concurrently |
| Map | Processes each item in a collection concurrently |
| Child Context | Groups operations in an isolated context |
What does the code look like?
This is the Node.js example from AWS's getting-started tutorial, shortened to two steps and a wait:
import {
withDurableExecution,
} from "@aws/durable-execution-sdk-js";
export const handler = withDurableExecution(
async (event, context) => {
const orderId = event.orderId;
// Step 1: Validate order
const validationResult = await context.step(async (stepContext) => {
stepContext.logger.info(`Validating order ${orderId}`);
return { orderId, status: "validated" };
});
// Wait for 10 seconds to simulate external confirmation
await context.wait({ seconds: 10 });
// Step 2: Confirm order
const confirmationResult = await context.step(async (stepContext) => {
stepContext.logger.info(`Confirming order ${orderId}`);
return { orderId, status: "confirmed" };
});
return { orderId, status: "completed", steps: [validationResult, confirmationResult] };
}
);
Which languages and runtimes are supported?
The supported runtimes page lists these Lambda managed runtimes:
- Node.js:
nodejs22.x,nodejs24.x(JavaScript and TypeScript) - Python:
python3.13,python3.14 - Java:
java17,java21,java25 - C# (.NET):
dotnet8,dotnet10
You can also use OCI container images. The Node.js and Python runtimes include the SDK, but AWS recommends bundling it with your function for production. For Java and .NET, you have to bundle it. One important catch: you can only turn on durable execution when you create a function. You can't switch it on for an existing function.
How much do Lambda durable functions cost?
These prices come from the Lambda pricing page:
| Charge | Price (US East) |
|---|---|
| Durable operations (starting an execution, completing a step, creating a wait, etc.) | $8.00 per million |
| Data written (checkpoints) | $0.25 per GB |
| Data retained | $0.15 per GB-month, prorated |
| Compute | Standard Lambda pricing, including replay invocations (e.g. $0.0000133334 per GB-second on Arm) |
| Requests | Standard $0.20 per million |
| While suspended in a wait | No duration charge (on-demand functions) |
AWS's own pricing example: 1 million insurance claims a month, on 1 GB Arm functions, comes to $490.46 a month. Most of that is compute ($421.34). Durable operations add $32.00, data written $26.00 and retention $10.92.
Durable functions vs Step Functions cost: a rough comparison
This is our estimate, not an AWS figure. Take a workflow with 10 durable operations per run, at 1 million runs a month:
- Durable functions: 10 million operations × $8 per million = about $80, plus data written and retained, plus Lambda compute.
- Step Functions Standard: at $0.000025 per state transition, 10 state transitions per run is 10 million transitions = about $250, minus a 4,000-transition free tier, plus the Lambda compute for any functions it calls.
Steps and state transitions don't map one-to-one, so check your own workflow in the AWS Pricing Calculator. Still, for Lambda-heavy logic, the orchestration fee is usually lower with durable functions. In a Hacker News thread on the launch, one developer (kondro) said you "could definitely do better than $8/million steps" building your own. They added that a general-purpose version on S3 or DynamoDB would probably cost "around the same order of magnitude", and you'd have to build it all yourself.
What are the limits? (timeout, operations, payload)
From the Lambda quotas page and the durable configuration docs:
| Limit | Value |
|---|---|
Whole execution timeout (ExecutionTimeout) |
1 to 31,622,400 seconds (about one year). Required when you set a durable config |
| Single invocation timeout | Normal Lambda function timeout, now up to 1,800 seconds (30 minutes) |
| Sync invoke or function URL | Execution timeout must be 30 minutes or less |
| Durable operations per execution | 30,000 (can't be increased) |
| Data persisted per execution | 100 MB (can't be increased) |
| Payload per operation | 1 MB (can't be increased) |
| Running executions | 5 million per Region (10 million in N. Virginia, Oregon, Ireland), soft limit |
| Start rate | 3,000 per second (6,000 in the three large Regions) |
| History retention | 1–90 days, default 14 |
People often confuse "Lambda durable functions timeout" with the per-invocation limit. Your execution can last up to a year. But each invocation (each time your code actually runs between waits) still has to finish within the normal function timeout. That limit went up to 30 minutes recently. Our guide to the Lambda 30-minute timeout covers that change.
Durable functions vs Step Functions: which should you use?
AWS publishes a decision guide. Here it is as a quick decision table:
| If you… | Pick |
|---|---|
| Want workflows written in normal code (TypeScript, Python, Java, C#) | Durable functions |
| Keep most of your logic inside Lambda | Durable functions |
| Want unit tests and IDE or AI coding tools to work on the workflow | Durable functions |
| Need a visual diagram non-engineers can read | Step Functions |
| Call many AWS services directly (AWS cites 220+ service integrations) | Step Functions |
| Want zero runtime patching or upgrades | Step Functions |
| Have both | Use both: Step Functions for the high-level flow, durable functions for app logic |
For the agent side of Step Functions, see our explainer on Step Functions as AgentCore Gateway tools.
What about Temporal? Durable functions use the same "workflows as code" idea as open-source engines like Temporal. AWS doesn't publish a comparison. The practical differences: durable functions run only on Lambda and are billed per operation, while Temporal needs its own servers or a Temporal Cloud subscription.
What's new: durable functions can now orchestrate Lambda MicroVMs
On 25 November 2026, AWS announced a developer preview that adds MicroVM operations to the Durable Execution SDK. Lambda MicroVMs are isolated, longer-running sandboxes; see our guide to Lambda MicroVMs pricing and limits.
According to the announcement:
- A durable function can run work on a single MicroVM, or in a MicroVM session where several tasks share files and memory.
- The durable function manages the MicroVM lifecycle: it checkpoints progress, retries failed tasks and refreshes MicroVM tokens.
- One durable function can orchestrate several MicroVMs in parallel.
- It can be triggered by Amazon SQS or Amazon EventBridge.
- An optional worker library inside the MicroVM image receives tasks, sends heartbeats and reports results.
- It works with the TypeScript and Python Durable Execution SDKs. The documentation and samples are in AWS's JavaScript SDK repository.
AWS names software factories, security scanners and CI/CD jobs as uses, especially jobs that run untrusted or agent-generated code. It's available in every Region that supports both durable functions and MicroVMs. AWS is clear that this is a preview: "Developer preview features may change, so do not use them for production workloads."
What will it cost?
The announcement doesn't add a new price. You'd pay durable function charges plus normal MicroVM pricing. On Arm in N. Virginia, that's $0.0000276944 per vCPU-second and $0.0000036667 per GB-second, plus snapshot charges. Each MicroVM can run for at most 8 hours per the quotas page. AWS's own pricing example for 10,000 security-scan or CI jobs comes to $1,124.03 a month, about $0.11 per job. That example covers MicroVMs only.
For how MicroVMs compare with other AWS sandboxing options, see AWS Nitro Sandboxes vs Lambda MicroVMs.
What developers are saying
There isn't much public discussion of the MicroVM preview yet, since it's only a day old. Reactions to the original launch in the Hacker News thread give a sense of the debate:
- bilalq: "Workflows-as-code is the way to go, and that was missing from AWS."
- jasonthorsness warned that distributed workflow state "makes observability and code upgrades a challenge." They asked for a way to let in-progress runs finish on version 1 while new runs start on version 2.
- kondro called it "considerably simpler, less magical and cheaper than the equivalent Step Function-style implementation."
- At launch, biglyburrito complained that only Node.js and Python were supported. Since then, AWS has added Java and .NET managed runtimes.
How to set up a durable function (quick steps)
- In the Lambda console, choose Create Event Function → Author from scratch.
- Pick Node.js 24 or Python 3.14, and tick Enable durable execution. This option is only available at creation.
- Paste the SDK example (above), then deploy.
- With the CLI, pass
--durable-config '{"ExecutionTimeout": 3600, "RetentionPeriodInDays": 7}'tocreate-function. Both of those values come from AWS's docs. - Keep the execution timeout and retention as short as your workflow allows. Longer retention costs more.
Editor's take
Durable functions are AWS's answer to "I just want to write the workflow in code." For teams that already live in Lambda, they look cheaper and simpler than Step Functions for application logic. The hard limits are the thing to plan around: 30,000 operations, 100 MB per execution, and 30 minutes per invocation.
The MicroVM preview is the interesting bit. It turns Lambda into a scheduler for isolated sandboxes, which is exactly what AI coding agents and CI systems need. But it's a preview, so don't put production on it yet. Expect more at re:Invent next week (our keynote schedule has the times).
Also on 9to5Amazon today: the FAA is investigating an Amazon drone crash in Michigan.
FAQ
What are AWS Lambda durable functions?
They are Lambda functions that checkpoint progress through a Durable Execution SDK. That lets one workflow run for up to a year, survive failures through replay, and wait without paying for compute.
How much do Lambda durable functions cost?
In US East, it's $8.00 per million durable operations, $0.25 per GB of data written and $0.15 per GB-month of data retained. Normal Lambda request and compute charges apply on top.
What is the Lambda durable functions timeout?
The whole execution can be set to anything from 1 second up to 31,622,400 seconds (about a year). Each individual invocation is still capped by the normal function timeout, which is up to 30 minutes. Synchronous calls need an execution timeout of 30 minutes or less.
Lambda durable functions vs Step Functions: which is better?
Neither is better in every case. AWS recommends durable functions for code-first logic that mostly runs in Lambda. It recommends Step Functions for visual, cross-service orchestration with 220+ native integrations. Many teams use both.
Can I enable durable execution on an existing Lambda function?
No. AWS's docs say you can only enable it when you create the function.
Which languages support Lambda durable functions?
Node.js (JavaScript and TypeScript), Python, Java and C# (.NET) managed runtimes are supported, plus container images. The new MicroVM extension preview supports TypeScript and Python only.
Which regions support Lambda durable functions?
AWS doesn't list them on the overview page we read. Check the AWS Regional Services list. The MicroVM preview is available wherever both durable functions and Lambda MicroVMs are.
Is the Lambda durable functions MicroVM integration production-ready?
No. It's a developer preview, and AWS says not to use it for production workloads.
Sources
- AWS What's New — Lambda durable functions orchestrate MicroVMs (25 Nov 2026): https://aws.amazon.com/about-aws/whats-new/2026/11/lambda-durable-microvm/
- AWS What's New — Lambda durable functions launch (Dec 2025): https://aws.amazon.com/about-aws/whats-new/2025/12/lambda-durable-multi-step-applications-ai-workflows/
- AWS Lambda pricing: https://aws.amazon.com/lambda/pricing/
- AWS Step Functions pricing: https://aws.amazon.com/step-functions/pricing/
- Lambda docs — durable functions: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
- Lambda docs — durable functions or Step Functions: https://docs.aws.amazon.com/lambda/latest/dg/durable-step-functions.html
- Lambda docs — quotas: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
- Lambda docs — durable configuration: https://docs.aws.amazon.com/lambda/latest/dg/durable-configuration.html
- Lambda docs — Durable Execution SDK: https://docs.aws.amazon.com/lambda/latest/dg/durable-execution-sdk.html
- Lambda docs — supported runtimes: https://docs.aws.amazon.com/lambda/latest/dg/durable-supported-runtimes.html
- Lambda docs — getting started: https://docs.aws.amazon.com/lambda/latest/dg/durable-getting-started.html
- AWS Durable Execution SDK for JavaScript (GitHub): https://github.com/aws/aws-durable-execution-sdk-js
- Hacker News launch discussion: https://news.ycombinator.com/item?id=46123269
Featured image: An Arm-based server chip from Annapurna Labs, Amazon's chip unit. This is an official Amazon photo of AWS hardware, not a picture of Lambda itself. Source