Interview Prep/AWS/DNS, CDN and Messaging

Why must SQS consumers be idempotent?

BeginnerConceptDNS, CDN and Messaging
Answer

Standard SQS guarantees at-least-once delivery, so a message can be delivered twice (retries, visibility timeouts, redrive). A consumer must produce the same end state whether it processes a message once or several times, for example using a unique business key with a conditional write, or storing processed message IDs in DynamoDB with a TTL.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging