title: When is an SQS message sent to deadletter queue via redrive policy?
body: <p>I have an SQS queue linked to a deadletter queue via a redrive policy. Terraform sample:</p>
  <pre><code>  redrive_policy = jsonencode({
      deadLetterTargetArn = aws_sqs_queue.deadletter_queue.arn
      maxReceiveCount     = 10
    })
  </code></pre>
  <p>The queue processing is implemented with exponential backoff. If processing is successful the message is simply deleted. If processing fails it retries with an initial <code>VisibilityTimeout</code> of 30 seconds, which doubles each time, the final retry timeout (between 9th and 10th attempt) is roughly 2 hours.</p>
  <p>My question is, after the final retry, when does the message get sent to the deadletter queue? Immediately after the 10th attempt or does it have to wait out the <code>VisibilityTimeout</code> (of about 4 hours)?.</p>
  <p>My concern is that it seems redundant to put a visibility timeout on a message if it's just going to be sent straight to the deadletter - this delays alerts for example.</p>