From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Using SQS best practices

Using SQS best practices

- Some best practices for using the Simple Queue Service. Tune your visibility timeout based on how long it takes to actually process. If you're doing something that is particularly computationally intensive, and it takes longer than that default visibility timeout of 30 seconds, you are going to have to increase that. So process time plus the amount of time it takes to delete it plus some level of buffer is what you're going to want to tune your visibility timeout to. Use retry and backoff logic in the SDKs. They will provide you with an exponential backoff for request errors. This is not just for SQS. This is a general best practice for using the SDKs. So for example, with DynamoDB, if you have read and write provisioning capacity, provisioned, rather, then if you exceed that read capacity or write capacity, then it's going to provide you with an error, and it's going to stop you from doing it. The SDK is going to do an exponential backoff whenever it gets that error. And if you…

Contents