Using the message deduplication ID in Amazon SQS - Amazon Simple Queue Service
This documentation is a draft for private preview for regions in the AWS European Sovereign Cloud. Documentation content will continue to evolve. Published: December 30, 2025.

Using the message deduplication ID in Amazon SQS

MessageDeduplicationId is a token used only in Amazon SQS FIFO queues to prevent duplicate message delivery. It ensures that within a 5-minute deduplication window, only one instance of a message with the same deduplication ID is processed and delivered.

If Amazon SQS has already accepted a message with a specific deduplication ID, any subsequent messages with the same ID will be acknowledged but not delivered to consumers.

Note

Amazon SQS continues tracking the deduplication ID even after the message has been received and deleted.