[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"reinvent2026-api314":3},{"id":4,"title":5,"YouTubeChannelID":6,"banner":6,"contributors":7,"description":6,"extension":9,"introBox":10,"meta":13,"pdf":14,"resources":17,"stem":138,"type":6,"video":6,"videos":6,"__hash__":139},"reinvent2026\u002Freinvent2026\u002Fapi314.json","API314: A closer look at AWS Lambda durable functions",null,[8],"content\u002Fcontributors\u002Feric-johnson.json","json",{"headline":11,"text":12},"Resources for API314: A closer look at AWS Lambda durable functions","AWS Lambda durable functions let you write reliable, long-running workflows as sequential code. This session started with how durable execution works: checkpointing, replay-based recovery, and the programming model. Next, we explored production patterns including sagas, fan-out\u002Ffan-in, and human-in-the-loop waits. Finally, we covered observability, a decision framework for choosing between durable functions and AWS Step Functions, and operational considerations like concurrency, cost, and versioning.\u003Cbr>\u003Cbr>This page has the slides, the demo code, and further reading for each part of the session.",{},{"source":15,"headline":16},"https:\u002F\u002Fserverlessland.s3.us-east-1.amazonaws.com\u002Fpdf\u002Freinvent2026\u002FAPI314.pdf","Slides from the presentation",{"left":18,"right":81},[19,36,50,64],{"headline":20,"subheading":21,"text":22,"bullets":23},"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.",[24,27,30,33],{"text":25,"link":26},"Lambda durable functions developer guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":28,"link":29},"Basic concepts","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-basic-concepts.html",{"text":31,"link":32},"Determinism (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fpatterns\u002Fbest-practices\u002Fdeterminism\u002F",{"text":34,"link":35},"Best practices for Lambda durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-best-practices.html",{"headline":37,"subheading":38,"text":39,"bullets":40},"Sagas","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.",[41,44,47],{"text":42,"link":43},"Saga pattern with AWS Lambda durable functions in Python (Serverless Land)","https:\u002F\u002Fserverlessland.com\u002Fpatterns\u002Flambda-durable-saga-python-sam",{"text":45,"link":46},"Saga orchestration pattern (AWS Prescriptive Guidance)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fprescriptive-guidance\u002Flatest\u002Fcloud-design-patterns\u002Fsaga-orchestration.html",{"text":48,"link":49},"Idempotency (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fpatterns\u002Fbest-practices\u002Fidempotency\u002F",{"headline":51,"subheading":52,"text":53,"bullets":54},"Human-in-the-loop waits","Durable Serverlesspresso","Serverlesspresso rebuilt as a durable function. The order workflow pauses with \u003Ccode>waitForCallback()\u003C\u002Fcode> while it waits for the barista to accept and complete each order, then resumes where it left off.",[55,58,61],{"text":56,"link":57},"Durable Serverlesspresso (GitHub)","https:\u002F\u002Fgithub.com\u002Fsingledigit\u002Fdurable-serverlesspresso",{"text":59,"link":60},"Serverlesspresso, the original event-driven version (GitHub)","https:\u002F\u002Fgithub.com\u002Fsingledigit\u002Fserverlesspresso",{"text":62,"link":63},"Callbacks (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fsdk-reference\u002Foperations\u002Fcallback\u002F",{"headline":65,"subheading":66,"text":67,"bullets":68},"Fan-out\u002Ffan-in","Image analysis orchestration","A four-step durable pipeline that splits an image into a grid of regions and uses \u003Ccode>context.map\u003C\u002Fcode> to run concurrent Amazon Bedrock Nova inferences across them, then aggregates the findings.",[69,72,75,78],{"text":70,"link":71},"Image analysis orchestration (GitHub)","https:\u002F\u002Fgithub.com\u002Fsingledigit\u002Fimage-analysis-orchestration",{"text":73,"link":74},"From 9 Tiles to 900: Scaling Computer Vision Pipelines (blog)","https:\u002F\u002Fedjgeek.com\u002Fblog\u002F9-tiles-to-900-cv-pipelines\u002F",{"text":76,"link":77},"Map (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fsdk-reference\u002Foperations\u002Fmap\u002F",{"text":79,"link":80},"Parallel (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fsdk-reference\u002Foperations\u002Fparallel\u002F",[82,93,100,114,121],{"headline":83,"subheading":84,"text":85,"bullets":86},"Observability","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.",[87,90],{"text":88,"link":89},"Monitoring durable functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-monitoring.html",{"text":91,"link":92},"Logging (AWS Durable Execution SDK)","https:\u002F\u002Fdocs.aws.amazon.com\u002Fdurable-execution\u002Fsdk-reference\u002Fobservability\u002Flogging\u002F",{"headline":94,"subheading":95,"text":96,"button":97},"Durable functions or Step Functions","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.",{"text":98,"link":99},"Docs","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-step-functions.html",{"headline":101,"subheading":102,"text":103,"bullets":104},"Operational considerations","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.",[105,108,111],{"text":106,"link":107},"Function versions and aliases","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-best-practices.html#durable-versioning",{"text":109,"link":110},"Durable functions quotas","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fgettingstarted-limits.html#durable-functions-quotas",{"text":112,"link":113},"AWS Lambda pricing","https:\u002F\u002Faws.amazon.com\u002Flambda\u002Fpricing\u002F",{"headline":115,"subheading":116,"text":117,"button":118},"Deep dive on AWS Lambda durable functions","re:Invent 2025, CNS380","The launch session for durable functions, including a walkthrough of Durable Serverlesspresso.",{"text":119,"link":120},"Watch","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=XJ80NBOwsow",{"headline":122,"subheading":123,"text":124,"bullets":125},"Keep learning","Workshops and more serverless","Hands-on workshops, the new Lambda form factors, and tools for building on AWS with a coding agent.",[126,129,132,135],{"text":127,"link":128},"Serverless workshops","https:\u002F\u002Fs12d.com\u002Fsvs-workshops-breakout",{"text":130,"link":131},"Reimagine AWS Lambda","https:\u002F\u002Fs12d.com\u002Freimagine-lambda",{"text":133,"link":134},"Agent Toolkit for AWS","https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws",{"text":136,"link":137},"Serverless Land","https:\u002F\u002Fserverlessland.com","reinvent2026\u002Fapi314","d4gyIelh0MdLUKxjk83rLR18HjP9fXMPfHv8NE-d9K0",1795919893239]