Skip to content

Commit 3fb5d92

Browse files
authored
Update example-pattern.json
1 parent c8be15a commit 3fb5d92

1 file changed

Lines changed: 101 additions & 46 deletions

File tree

lambda-durable-esm-and-chaining/example-pattern.json

Lines changed: 101 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,119 @@
44
"language": "Python",
55
"level": "200",
66
"framework": "AWS SAM",
7-
"services": ["sqs","lambda", "dynamoDB"],
7+
"services": [
8+
"sqs",
9+
"lambda",
10+
"dynamoDB"
11+
],
812
"introBox": {
9-
"headline": "How it works",
10-
"text": [
11-
"This pattern demonstrates an event-driven data processing pipeline using AWS Lambda Durable Functions with direct SQS Event Source Mapping. When a message arrives in the SQS queue, it directly triggers the durable function (no intermediary Lambda needed). The durable function then orchestrates a series of specialized processing steps using Lambda invoke chaining - first validating the incoming data, then transforming it (converting data_source to uppercase), and finally storing the processed results in DynamoDB. Throughout this process, the durable function automatically creates checkpoints, enabling fault-tolerant execution that can recover from failures without losing progress. The entire pipeline operates within the 15-minute ESM execution limit, making it ideal for reliable batch processing workflows."
12-
]
13+
"headline": "How it works",
14+
"text": [
15+
"This pattern demonstrates an event-driven data processing pipeline using AWS Lambda Durable Functions with direct SQS Event Source Mapping. When a message arrives in the SQS queue, it directly triggers the durable function (no intermediary Lambda needed). The durable function then orchestrates a series of specialized processing steps using Lambda invoke chaining, first validating the incoming data, then transforming it , and finally storing the processed results in DynamoDB. Throughout this process, the durable function automatically creates checkpoints, enabling fault-tolerant execution that can recover from failures without losing progress. The entire pipeline operates within the 15-minute ESM execution limit, making it ideal for reliable batch processing workflows."
16+
]
1317
},
1418
"testing": {
15-
"headline": "Testing",
16-
"text": [
17-
"See the GitHub repo for detailed testing instructions."
18-
]
19+
"headline": "Testing",
20+
"text": [
21+
"See the GitHub repo for detailed testing instructions."
22+
]
1923
},
2024
"cleanup": {
21-
"headline": "Cleanup",
22-
"text": [
23-
"Delete the stack: <code>sam delete</code>."
24-
]
25+
"headline": "Cleanup",
26+
"text": [
27+
"Delete the stack: <code>sam delete</code>."
28+
]
2529
},
2630
"deploy": {
27-
"text": [
28-
"sam build",
29-
"sam deploy --guided"
30-
]
31+
"text": [
32+
"sam build",
33+
"sam deploy --guided"
34+
]
3135
},
3236
"gitHub": {
33-
"template": {
34-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-esm-and-chaining",
35-
"templateURL":"serverles-patterns/lambda-durable-esm-and-chaining",
36-
"templateFile": "template.yaml",
37-
"projectFolder": "lambda-durable-esm-and-chaining"
38-
}
37+
"template": {
38+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-esm-and-chaining",
39+
"templateURL": "serverles-patterns/lambda-durable-esm-and-chaining",
40+
"templateFile": "template.yaml",
41+
"projectFolder": "lambda-durable-esm-and-chaining"
42+
}
3943
},
4044
"resources": {
41-
"headline": "Additional resources",
42-
"bullets": [
45+
"headline": "Additional resources",
46+
"bullets": [
47+
{
48+
"text": "AWS Lambda Durable Functions Documentation",
49+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
50+
},
51+
{
52+
"text": "Event Source Mappings with Durable Functions",
53+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-invoking-esm.html"
54+
},
55+
{
56+
"text": "Durbale Function Lambda Invoke Chaining",
57+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-examples.html#durable-examples-chained-invocations"
58+
}
59+
]
60+
},
61+
"authors": [
4362
{
44-
"text": "AWS Lambda Durable Functions Documentation",
45-
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
63+
"name": "Sahithi Ginjupalli",
64+
"image": "https://drive.google.com/file/d/1YcKYuGz3LfzSxiwb2lWJfpyi49SbvOSr/view?usp=sharing",
65+
"bio": "Cloud Engineer at AWS with a passion for diving deep into cloud and AI services to build innovative serverless applications.",
66+
"linkedin": "ginjupalli-sahithi-37460a18b",
67+
"twitter": ""
68+
}
69+
],
70+
"patternArch": {
71+
"icon1": {
72+
"x": 20,
73+
"y": 50,
74+
"service": "sqs",
75+
"label": "SQS Queue"
4676
},
47-
{
48-
"text": "Event Source Mappings with Durable Functions",
49-
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-invoking-esm.html"
77+
"icon2": {
78+
"x": 60,
79+
"y": 50,
80+
"service": "lambda",
81+
"label": "Lambda Durable Function"
5082
},
51-
{
52-
"text": "Durbale Function Lambda Invoke Chaining",
53-
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-examples.html#durable-examples-chained-invocations"
54-
}
55-
]
56-
},
57-
"authors": [
58-
{
59-
"name": "Sahithi Ginjupalli",
60-
"image": "https://drive.google.com/file/d/1YcKYuGz3LfzSxiwb2lWJfpyi49SbvOSr/view?usp=sharing",
61-
"bio": "Cloud Engineer at AWS with a passion for diving deep into cloud and AI services to build innovative serverless applications.",
62-
"linkedin": "ginjupalli-sahithi-37460a18b",
63-
"twitter": ""
83+
"line1": {
84+
"from": "icon1",
85+
"to": "icon2",
86+
"label": "Event Source Mapping"
87+
},
88+
"icon3": {
89+
"x": 90,
90+
"y": 10,
91+
"service": "lambda",
92+
"label": ""
93+
},
94+
"icon4": {
95+
"x": 90,
96+
"y": 50,
97+
"service": "lambda",
98+
"label": ""
99+
},
100+
"icon5": {
101+
"x": 90,
102+
"y": 90,
103+
"service": "lambda",
104+
"label": ""
105+
},
106+
"line2": {
107+
"from": "icon2",
108+
"to": "icon3",
109+
"label": ""
110+
},
111+
"line3": {
112+
"from": "icon2",
113+
"to": "icon4",
114+
"label": "Chained Invocation"
115+
},
116+
"line4": {
117+
"from": "icon2",
118+
"to": "icon5",
119+
"label": ""
64120
}
65-
]
66-
}
67-
121+
}
122+
}

0 commit comments

Comments
 (0)