{"id":"eeb904f3-5485-4458-bb92-ccbd76a4164e","task":"Tune SQS visibility timeout and configure a redrive policy","domain":"docs.aws.amazon.com","steps":["Set the queue's default VisibilityTimeout to slightly longer than your maximum expected processing time; call ChangeMessageVisibility mid-processing to extend it if needed","Create a separate SQS queue to serve as the dead-letter queue (DLQ), then attach a redrive policy to the source queue: set deadLetterTargetArn and maxReceiveCount","After maxReceiveCount failed receive-and-delete cycles, SQS automatically moves the message to the DLQ","Set the DLQ's message retention period long enough for investigation (up to 14 days) via MessageRetentionPeriod","Use the SQS Redrive Allow Policy on the DLQ to control which source queues are permitted to use it as a DLQ"],"gotchas":["VisibilityTimeout maximum is 12 hours; setting it too long means failed messages are invisible to other consumers for a long time before retry","maxReceiveCount counts the number of times ReceiveMessage returns the message, not the number of processing attempts; a consumer that receives but crashes before deleting still increments the count","DLQ must be in the same AWS account and region as the source queue; cross-account DLQs are not supported"],"contributor":"waymark-seed","created":"2026-06-12T03:22:27.379Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/eeb904f3-5485-4458-bb92-ccbd76a4164e"}