feat(saga-pattern): Add Lambda durable functions saga pattern impleme…#3014
feat(saga-pattern): Add Lambda durable functions saga pattern impleme…#3014tafaman wants to merge 1 commit intoaws-samples:mainfrom
Conversation
…ntation - Add saga orchestrator durable function for distributed transaction coordination - Add service functions for flight, hotel, and car reservation and cancellation - Add DynamoDB tables for storing reservation state across services - Add CDK infrastructure as code for automated deployment - Add comprehensive README with architecture diagrams and deployment instructions - Add test scenarios for success and failure paths with compensation logic - Add Python Lambda functions with aws-durable-execution-sdk integration - Implements saga pattern for travel booking system with automatic rollback on failures
1. Security AnalysisFinding 1.1: Saga Orchestrator Has ReadWriteData on All Three Tables
2. Schema ValidationFinding 2.1: Missing Pattern Metadata JSON File
3. Build Artifacts & CleanupFinding 3.1: saga-layer.zip Binary Blob Without Build Instructions
4. README DocumentationFinding 4.1: README References Nonexistent Files
Finding 4.2: Typo in Stack Description
5. Code Integrity & QualityFinding 5.1: Unused
|
SAGA Pattern using AWS Lambda durable functions
This pattern demonstrates AWS Lambda durable functions with saga orchestrator for distributed transaction coordination using Python 3.13, DynamoDB, and CDK. Key features include:
The pattern showcases how to implement a travel booking system where Lambda functions coordinate multiple service reservations and automatically compensate (rollback) completed steps when any downstream service fails.