-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathexample-pattern.json
More file actions
68 lines (68 loc) · 2.62 KB
/
example-pattern.json
File metadata and controls
68 lines (68 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"title": "Saga pattern with AWS Lambda durable functions in Node.js",
"description": "Implement the Saga pattern for distributed transactions using AWS Lambda durable functions with automatic compensating transactions",
"language": "Node.js",
"level": "200",
"framework": "AWS SAM",
"introBox": {
"headline": "How it works",
"text": [
"This pattern demonstrates the Saga pattern using AWS Lambda durable functions to coordinate distributed transactions across multiple services.",
"The orchestrator function executes a sequence of reservation steps (flight, hotel, car). Each step is checkpointed automatically using context.step().",
"If any step fails, compensating transactions execute in reverse order to rollback all completed operations, ensuring data consistency.",
"The durable function maintains execution state without requiring external storage like DynamoDB or Step Functions."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/aws-lambda-durable-functions-nodejs-saga-pattern",
"templateURL": "serverless-patterns/aws-lambda-durable-functions-nodejs-saga-pattern",
"projectFolder": "aws-lambda-durable-functions-nodejs-saga-pattern",
"templateFile": "template.yaml"
}
},
"resources": {
"bullets": [
{
"text": "AWS Lambda durable functions",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
},
{
"text": "Lambda Durable Execution SDK",
"link": "https://github.com/aws/aws-durable-execution-sdk-js"
},
{
"text": "Saga Pattern",
"link": "https://microservices.io/patterns/data/saga.html"
},
{
"text": "Building Serverless Distributed Applications with Saga",
"link": "https://aws.amazon.com/blogs/compute/building-a-serverless-distributed-application-using-a-saga-orchestration-pattern/"
}
]
},
"deploy": {
"text": [
"sam build",
"sam deploy --guided"
]
},
"testing": {
"text": [
"See the README in the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"<code>sam delete --stack-name saga-pattern-demo</code>"
]
},
"authors": [
{
"name": "Surya Sai D",
"image": "",
"bio": "Surya works as a Technical Account Manager at AWS. He is an expert in Serverless frameworks and Event Driven Architectures. Surya is also passionate on technical writing and has contributed to AWS blogs and other Open Source Content.",
"linkedin": "surya-sai-d-64920416a"
}
]
}