Deduplicating Amazon SQS Messages

Processing exactly-once between multiple Lambda consumers

Ross Rhodes
AVM Consulting Blog
6 min readJun 10, 2019

--

Every day I find myself facing interesting problems to solve working with Amazon Web Services (AWS). A recent issue of particular interest to me took the form of message deduplication in Amazon’s Simple Queue Service (SQS).

We have a standard SQS queue, automatically triggering a Lambda function to consume messages. This function scales automatically— increasing and decreasing its number of concurrent executions — to handle the number of messages…

--

--

Ross Rhodes
AVM Consulting Blog

Senior Software Engineer architecting and building AWS serverless systems at KrakenFlex. Working primarily with Python and Node.js.