Skip to content

Commit 9a198c2

Browse files
authored
publishing file
1 parent 3748997 commit 9a198c2

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"title": "Order Processing with AWS Lambda Durable Functions",
3+
"description": "Order processing workflow using Lambda Durable Functions with automatic checkpointing, long-running waits, and state persistence",
4+
"language": "Node.js",
5+
"level": "300",
6+
"framework": "AWS SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"This pattern demonstrates an order processing workflow using Lambda Durable Functions.",
11+
"The workflow includes validation, payment processing, fraud checks, credit checks (for high-value orders), inventory management, and shipping coordination.",
12+
"Durable execution enables long-running waits (5 minutes for warehouse processing, 3 minutes for carrier pickup) without consuming compute resources.",
13+
"Each step is automatically checkpointed, allowing the workflow to survive interruptions and resume from the last successful step.",
14+
"The pattern uses a dual-function architecture: async durable function for order processing and sync non-durable function for real-time status queries.",
15+
"Order state is persisted in Amazon DynamoDB with real-time status updates throughout the 17-step workflow."
16+
]
17+
},
18+
"gitHub": {
19+
"template": {
20+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-order-processing-sam",
21+
"templateURL": "serverless-patterns/lambda-durable-order-processing-sam",
22+
"projectFolder": "lambda-durable-order-processing-sam",
23+
"templateFile": "template.yaml"
24+
}
25+
},
26+
"resources": {
27+
"bullets": [
28+
{
29+
"text": "Lambda Durable Functions Documentation",
30+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
31+
},
32+
{
33+
"text": "Durable Execution SDK for JavaScript",
34+
"link": "https://github.com/aws/aws-durable-execution-sdk-js"
35+
},
36+
{
37+
"text": "AWS Blog: Build multi-step applications with Lambda durable functions",
38+
"link": "https://aws.amazon.com/blogs/aws/build-multi-step-applications-and-ai-workflows-with-aws-lambda-durable-functions/"
39+
}
40+
]
41+
},
42+
"deploy": {
43+
"text": [
44+
"Note: Lambda Durable Functions are currently available in us-east-2 (Ohio) region only.",
45+
"cd src && npm install && cd ..",
46+
"sam build",
47+
"sam deploy --guided --region us-east-2"
48+
]
49+
},
50+
"testing": {
51+
"text": [
52+
"See the GitHub repo for detailed testing instructions."
53+
]
54+
},
55+
"cleanup": {
56+
"text": [
57+
"Delete the stack: <code>sam delete --region us-east-2</code>."
58+
]
59+
},
60+
"authors": [
61+
{
62+
"name": "Abhishek Agawane",
63+
"image": "https://drive.google.com/file/d/1E-5koDaKEaMUtOctX32I9TLwfh3kgpAq/view?usp=drivesdk",
64+
"bio": "Abhishek Agawane is a Security Consultant at Amazon Web Services with more than 8 years of industry experience. He helps organizations architect resilient, secure, and efficient cloud environments, guiding them through complex challenges and large-scale infrastructure transformations. He has helped numerous organizations enhance their cloud operations through targeted optimizations, robust architectures, and best-practice implementations.",
65+
"linkedin": "agawabhi"
66+
}
67+
],
68+
"patternArch": {
69+
"icon1": {
70+
"x": 20,
71+
"y": 50,
72+
"service": "apigw",
73+
"label": "API Gateway REST API"
74+
},
75+
"icon2": {
76+
"x": 50,
77+
"y": 50,
78+
"service": "lambda",
79+
"label": "AWS Lambda"
80+
},
81+
"line1": {
82+
"from": "icon1",
83+
"to": "icon2"
84+
},
85+
"icon3": {
86+
"x": 80,
87+
"y": 50,
88+
"service": "dynamodb",
89+
"label": "Amazon DynamoDB"
90+
},
91+
"line2": {
92+
"from": "icon2",
93+
"to": "icon3"
94+
}
95+
}
96+
}

0 commit comments

Comments
 (0)