Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable AWS SQS open and read timeout #58

Open
roysab opened this issue Jun 9, 2020 · 0 comments
Open

Configurable AWS SQS open and read timeout #58

roysab opened this issue Jun 9, 2020 · 0 comments

Comments

@roysab
Copy link

roysab commented Jun 9, 2020

The AWS SQS client by default uses the following timeouts:

  • http_open_timeout: 15 seconds
  • http_read_timeout: 60 seconds
  • http_idle_timeout: 5 seconds

For job submit Sqewer uses a retriable request, so we could set a shorter open timeout, as it will retry a number of times. Especially when SQS messages are submitted within the handling of a web request with a 30 second timeout, it would be nice to be able to configure the timeout and number of retries so that it will fit within that 30 seconds request timeout, so that an error will be logged in Appsignal.

Here's a link to an example where this appears to happen that a SQS message submit takes 15 seconds, likely hitting the AWS SQS Client open timeout after 15 seconds and then quickly succeeding on the retry:
https://wetransfer.atlassian.net/browse/AB-29?focusedCommentId=16417

This means that if it times out on the first and second attempt, that the request would already have exceeded the 30 seconds and be aborted.

So configuring a shorter timeout would allow more than 2 attempts, and result in faster response times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant