MessageDeduplicationId
Prevents duplicate delivery within a 5-minute window:
sqs.send_message()
.queue_url(fifo_queue_url)
.message_body(serde_json::to_string(&order)?)
.message_group_id(order.customer_id.to_string())
.message_deduplication_id(order.idempotency_key.to_string())
.send().await?;
If a message with the same deduplication ID was sent in the last 5 minutes, this send is silently dropped (and returns success). The producer should treat this as a successful send.