[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-lambda-durable-order-workflow-java-cdk":3,"pattern-group-lambda-durable-order-workflow-java-cdk":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":23,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":6,"patternGroupLabel":6,"resources":52,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Flambda-durable-order-workflow-java-cdk.json","AWS Lambda Durable Execution with Java SDK",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14,15],"cd src && mvn clean package -q","cd .. && cdk deploy","Build a resilient, multi-step order processing workflow using the AWS Lambda Durable Execution SDK for Java with automatic checkpointing and failure recovery.","json","AWS CDK",{"template":20},{"patternPath":21,"templateFile":22},"lambda-durable-order-workflow\u002Fjava\u002Fcdk","lib\u002Flambda-durable-execution-java-stack.ts",{"headline":24,"text":25},"How it works",[26,27,28],"This pattern deploys a Lambda durable function written in Java that orchestrates a multi-step order processing workflow. The function uses the Durable Execution SDK for Java to automatically checkpoint progress at each step.","The workflow: (1) validates the order, (2) reserves inventory, (3) processes payment, (4) waits for warehouse processing (no compute charges), (5) confirms shipment. Each step is checkpointed, so if the function is interrupted, it resumes from the last completed step.","The Java SDK provides `DurableHandler\u003CI,O>` and `DurableContext`, supporting steps, waits, callbacks, invoke, map, and parallel operations.","Java","300",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},15,50,"icon-internet","Client\nAWS CLI",{"x":35,"y":35,"service":39,"label":40},"lambda-durable-functions","AWS Lambda\nDurable function",{"x":42,"y":35,"service":43,"label":44},85,"cloudwatch","Amazon CloudWatch\nLogs",{"from":46,"to":47,"label":48},"icon1","icon2","Order",{"from":47,"to":50,"label":51},"icon3","Step logs",{"bullets":53},[54,57,60],{"text":55,"link":56},"Lambda Durable Execution SDK for Java on GitHub","https:\u002F\u002Fgithub.com\u002Faws\u002Faws-durable-execution-sdk-java\u002F",{"text":58,"link":59},"Lambda Durable Functions Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-functions.html",{"text":61,"link":62},"Deploy Lambda durable functions with Infrastructure as Code","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-getting-started-iac.html","patterns\u002Flambda-durable-order-workflow-java-cdk",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","DE_qD3dJ-ei88UQ2LJqsSz_CRMx9i7q0tCOc1VVNmRE",1795084466176]