Duplicate Message Received by using SQS/SNS

0

HI, I am using SNS Topic to publish the message to Email subscribers SQS, but it triggered for duplicate notification. may I know how to solve this.

My SQS is standard queue. Thanks

1 Answer
0

Hi, can you switch you queue to FIFO instead of standard?

FIFO has a built-in mechanism to avoid such duplicates: see https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html

More details about this depuplication mechanism at https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
profile picture
EXPERT
reviewed a year ago
  • I tried FIFO, but keep spamming the email like 10++,

  • May i know the duplicate message sending will happened for SNS as well ? I trigger 5 times, gt 1 times is duplicate,seems like the SNS to SQS is unstables, but i couldn't find the issues.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions