
Compensating for failed steps
There is no distributed transaction across services. A saga runs each step in turn and, when one fails, runs compensating steps to undo the work already done.
Durable Serverlesspresso
Serverlesspresso rebuilt as a durable function. The order workflow pauses with waitForCallback() while it waits for the barista to accept and complete each order, then resumes where it left off.
Image analysis orchestration
A four-step durable pipeline that splits an image into a grid of regions and uses context.map to run concurrent Amazon Bedrock Nova inferences across them, then aggregates the findings.
Metrics, events, logs, and tracing
Durable executions publish Amazon CloudWatch metrics and Amazon EventBridge status change events, and support AWS X-Ray tracing. Structured logs with execution IDs and step names tie it together.
A decision framework
Both run long-running, reliable workflows. The choice comes down to whether you want to express the workflow as code or as a visual, service-integrated state machine, and the two can work together.
Concurrency, cost, and versioning
Invoke durable functions with a version or alias to pin each execution to the code it started with, and don't rename or change steps in ways that break replay of executions in progress.
re:Invent 2025, CNS380
The launch session for durable functions, including a walkthrough of Durable Serverlesspresso.
Workshops and more serverless
Hands-on workshops, the new Lambda form factors, and tools for building on AWS with a coding agent.
How durable execution works
Checkpointing, replay, and the programming model
Durable functions checkpoint each operation and replay your code after an interruption, so completed work is not run again and waits cost no compute. Because the code replays, it has to be deterministic.