Providing the message deduplication ID in Amazon SQS - Amazon Simple Queue Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Providing the message deduplication ID in Amazon SQS

The producer should provide message deduplication ID values for each message in the following scenarios:

  • Messages sent with identical message bodies that Amazon SQS must treat as unique.

  • Messages sent with identical content but different message attributes that Amazon SQS must treat as unique.

  • Messages sent with different content (for example, retry counts included in the message body) that Amazon SQS must treat as duplicates.