DEV Community

Cover image for Learn Lambda Destinations combined with Amazon EventBridge using AWS CDK for truly decoupled Event Driven Architecture
Matt Coulter
Matt Coulter

Posted on

Learn Lambda Destinations combined with Amazon EventBridge using AWS CDK for truly decoupled Event Driven Architecture

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.

Architecture

Alt Text

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)