The Destined Lambda combines Lambda Destinations with Amazon EventBridge to show you that with EventBridge rules you can decouple your components in an event driven architecture and by combining it with lambda destinations you can strip out EventBridge specific code from your lambda functions themselves and decouple further.
An important point about Lambda Destinations is that they have to be executed asynchronously which is why the lambda is invoked via SNS in this pattern. To reduce custom code, I have integrated the SNS directly with API Gateway using Apache VTL.
How To Get The Code?
- Visit cdkpatterns.com and clone the whole repo or browse
- Use the command line tool to install with one command "npx cdkp init the-destined-lambda"
Top comments (0)