[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-dynamodb-streams-to-eventbridge-outbox-pattern":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":32,"level":33,"meta":34,"patternArch":35,"resources":59,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fdynamodb-streams-to-eventbridge-outbox-pattern.json","Outbox pattern with Amazon DynamoDB and Amazon EventBridge",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fdavid-boyne.json",{"text":13},[14],"cdk deploy","Outbox pattern example with DynamoDB streams and EventBridge. Listen for new inserts and raise domain events into your architecture.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-streams-to-eventbridge-outbox-pattern","serverless-patterns\u002Fdynamodb-streams-to-eventbridge-outbox-pattern","dynamodb-streams-to-eventbridge-outbox-pattern","cdk\u002Flib\u002Feventbridge-outbox-pattern-with-ddb-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29,30,31],"Example outbox messaging pattern that first stores data, uses change data capture to raise events for downstream consumers","\u003Ch5>How the outbox pattern works\u003C\u002Fh5>","\u003Cimg width=\"100%\" src=\"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Fraw\u002Fmain\u002Fdynamodb-streams-to-eventbridge-outbox-pattern\u002Fcdk\u002Fscreenshot.png?raw=true\" \u002F>","\u003Cul style=\"list-style-type: none;\">\u003Cli>Lambda is triggered to insert data into DynamoDB (new user in this example). This Lambda would be triggered from other event in reality, e.g API Gateway for example\u003C\u002Fli>\u003Cli>2. Table to store new information (user in this example)\u003C\u002Fli>\u003Cli>3. Change data capture stream setup for table to listen for New Image (new items into the table)\u003C\u002Fli>\u003Cli>4. Lambda connects to stream to process the change events, and processed them into Domain events (in this example UserCreated).\u003C\u002Fli>\u003Cli>5. Events are sent to business event bus, and rules setup for downstream consumers. In this example we have a basic Lambda function listening for the new UserCreated event.\u003C\u002Fli>\u003C\u002Ful>","\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Fblob\u002Fmain\u002Fdynamodb-streams-to-eventbridge-outbox-pattern\u002Fcdk\">Read more about this pattern\u003C\u002Fa>","TypeScript","200",{},{"icon1":36,"icon2":41,"icon3":45,"icon4":49,"line1":51,"line2":55,"line3":57},{"x":37,"y":38,"service":39,"label":40},20,50,"dynamodb","Amazon DynamoDB",{"x":42,"y":38,"service":43,"label":44},40,"lambda","AWS Lambda",{"x":46,"y":38,"service":47,"label":48},60,"eventbridge","Amazon EventBridge",{"x":50,"y":38,"service":43,"label":44},80,{"from":52,"to":53,"label":54},"icon1","icon2","",{"from":53,"to":56,"label":54},"icon3",{"from":56,"to":58,"label":54},"icon4",{"bullets":60},[61],{"text":62,"link":63},"Transactional outbox pattern","https:\u002F\u002Fmicroservices.io\u002Fpatterns\u002Fdata\u002Ftransactional-outbox.html","patterns\u002Fdynamodb-streams-to-eventbridge-outbox-pattern",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","ukT7XXfT7Zm6KrVFnkM6a1nLhFLBbc5pNplyYdm3T5Y",1778927707296]