2

I have been trying to understand the difference between apicallattempttimeout and apicalltimeout. What I could understand is apicalltimeout is the total time till the client request waits for the response before giving up whereas apicallattemptimeout includes timeout for retries as well in addition to the time in the first attempt.

So does this mean that apicallattemptimeout will always be more than apicalltimeout? Example : Suppose I keep apicalltimeout to be 1000ms and for a single retry I want the timeout to be 300ms. So values will be for apicalltimeout= 1000ms and apicallattemptimeout= 1300ms ? API docs dont seem to help here apicallattempttimeout and apicalltimeout

asked Feb 17, 2023 at 20:06
3
  • 1
    My reading of the docs suggests that apiCallTimeout should be greater than apiCallAttemptTimeout because the former includes retries. Whether it must be greater is a different question. The SDK may allow you to set any relative values and it will simply timeout whichever is exceeded first. Commented Feb 17, 2023 at 20:16
  • @jarmod i think the later includes retries. Commented Feb 17, 2023 at 20:59
  • 1
    The apiCallTimeout documentation indicates "This includes request handler execution, all HTTP requests including retries, unmarshalling, etc". Commented Feb 17, 2023 at 21:16

1 Answer 1

0
  • ApiCallAttemptTimeout tracks the amount of time for a single http attempt and the request can be retried if timed out on api call attempt.

  • ApiCallTimeout configures the amount of time for the entire execution including all retry attempts.

Checkout this best practices guide for more details - https://github.com/aws/aws-sdk-java-v2/blob/97ee691a1a4f689a238f4a92acc4908f87979f05/docs/BestPractices.md?plain=1#L56

answered Nov 8, 2024 at 8:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.