Amazon EventBridge is an event management service. It allows you to connect components of a loosely coupled application through events, sparing developers the hassle of writing code to trigger or invoke components. EventBridge routes, filters, and processes events among AWS services, SaaS applications, and custom applications. EventBridge Pipes support point-to-point integration by connecting a source and a target. Pipes allow you to filter and enrich the events sent to the destination.
In this Cloud Lab, you’ll create a payment system using an SNS topic, Lambda functions, and a DynamoDB table. You’ll first create a Lambda function that will receive the transaction request made by a user through a React application. This function will check for duplicates and store items in a DynamoDB table. You’ll then create an EventBridge pipe using the DynamoDB table as the source. It will first invoke the Lambda function to enrich and process the transaction you receive from the DynamoDB table. Once the data is enriched, your message will be published on the SNS topic and forwarded to an email subscriber.
After completing this Cloud Lab, you can use EventBridge Pipes to create a serverless event-driven payment system that processes transactions in near real time.