Reduce The Cost Of Your Lambda Functions With Event Filters (Part 2 of 2)

2023-04-27T03:15:40+00:00

Introduction In the first part of this post, we covered the concept behind event filtering in AWS Lambda and learned how it could help you save money by invoking functions only when necessary. Now it's time to put that knowledge into practice. In this part 2, we’ll see event filtering in action using Amazon Simple Queue Service (SQS) as the event source. Overview A user sends a JSON message to the SQS queue. Event source mapping picks up the message from the queue and evaluates it against the specified filtering criteria. Event source mapping invokes the Lambda function synchronously when [...]