Handling request errors 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).

Handling request errors in Amazon SQS

To handle request errors, use one of the following strategies:

  • If you use an Amazon SDK, you already have automatic retry and backoff logic at your disposal. For more information, see Error Retries and Exponential Backoff in Amazon in the Amazon Web Services General Reference.

  • If you don't use the Amazon SDK features for retry and backoff, allow a pause (for example, 200 ms) before retrying the ReceiveMessage action after receiving no messages, a timeout, or an error message from Amazon SQS. For subsequent use of ReceiveMessage that gives the same results, allow a longer pause (for example, 400 ms).