Skip to main content

AWS Lambda

AWS Lambda durable functions

Preserve progress despite interruptions

What is AWS Lambda durable functions

Simplify building multi-step applications and AI workflows with AWS Lambda durable functions, all within Lambda's existing programming model. Durable functions automatically checkpoint progress, suspend execution for up to one year during long-running tasks, and recover from failures. You do not need to manage additional infrastructure or write custom state management and error handling code, allowing you to innovate faster. With durable functions, you can create order processing systems that survive failures, coordinate microservices transactions with automatic rollback, or implement AI-assisted approval workflows that can suspend execution for human decisions.

Benefits

Simplify building multi-step applications and AI workflows with familiar programming patterns in your preferred programming language.

Strengthen application resilience through built-in error handling, automatic retries, and recovery after failures.

Enhance operational efficiency by suspending and resuming executions during wait periods like human approvals, charging only for active compute time. Easily observe progress of your durable functions executions in the Lambda console.

Features

Write, test, and debug durable functions using your preferred programming languages and tools.

Enable durable functions through a simple configuration setting when creating a Lambda function. Enhance your business logic with new Lambda event handler primitives like “steps” and “waits”.

Use “Steps” to checkpoint progress with automatic retries and recovery from the last known checkpoint.

Use "wait" and “callback” patterns to suspend execution for up to one year when waiting for external events, such as human-in-the-loop AI workflows or order processing.

Use cases

Build resilient payment flows that maintain transaction state through failures and handle retries automatically. Coordinate multi-step authorization, fraud checks, and settlement across payment providers with full auditability across steps.

Create multi-step AI workflows that chain model calls, incorporate human feedback, and handle long-running tasks deterministically during failures. Automatically resume after suspension, and only pay for active execution time.

Coordinate order processing across inventory, payment, shipping, and notification systems with built-in resilience. Automatically handle partial failures, preserve order state despite interruptions, and efficiently wait for external events without consuming compute resources.

Build reliable workflows for employee onboarding, loan approvals, and compliance processes that span days or weeks. Maintain workflow state across human approvals, system integrations, and scheduled tasks while providing full visibility into process status and history.

Did you find what you were looking for today?

Let us know so we can improve the quality of the content on our pages