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

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

nideveloper profile image Matt Coulter ・1 min read

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"

Posted on by:

nideveloper profile

Matt Coulter

@nideveloper

Software Architect working on enabling engineers to rapidly deliver serverless-first solutions in a Fortune 100 organisation - passionate about Serverless, AWS, dev.to/cdkpatterns, TCO, and CI/CD

Discussion

pic
Editor guide