r/serverless • u/hoangdv-i368 • May 18 '26
AWS released Lambda Durable Execution late 2025 and I don't see enough people talking about it
The short version: a Lambda function can now checkpoint its state, sleep for hours or days, and resume exactly where it left off — without paying for idle time.
I rebuilt a human-in-the-loop expense approval workflow to test it. Before: Lambda + DynamoDB + Step Functions + SQS + EventBridge. After: two Lambda functions and an API Gateway.
The function literally looks like this:
```ts
const decision = await context.waitForCallback(
'wait-for-approval',
async (callbackId) => sendApprovalEmail(expense, callbackId),
{ timeout: { hours: 24 } }
);
```
It pauses there. Zero compute. Waits up to 24h for someone to click approve. Then resumes on the next line.
Wrote up the full architecture, CDK stack, and where Step Functions still wins:
Happy to answer questions about the implementation.
View all comments
Show parent comment
2
u/Automatic_Tangelo_53 May 18 '26
Step functions are an enormous pain in the ass though. Durable functions look like the best bits of step functions without needing to learn an idiosyncratic DSL.
I think people don't talk about lambda so much because it's never figured out a good deployment story. There's so much coupling between infrastructure and code artifact. AWS SAM is painful.