Does the standard AmazonDynamoDBClient use exponential back off when retrying requests that failed due to a ProvisionedThroughputExceededException?
Asked Answered
J

1

7

I've created a standard AmazonDynamoDBClient using the AmazonDynamoDBClientBuilder:

AmazonDynamoDBClient client = AmazonDynamoDBClientBuilder.standard().build();

In the documentation for the AmazonDynamoDBClient, it mentions:

ProvisionedThroughputExceededException - Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff.

Is exponential backoff used by default for standard clients when retrying requests that failed to due to a ProvisionedThroughputExceededException? Or is this something I will need to manually configure?

Jamboree answered 18/9, 2019 at 17:18 Comment(0)
J
4

The AWS documentation for Error Retries and Exponential Backoff mentions this:

The AWS SDKs implement automatic retry logic and exponential backoff.

The default DynamoDB Retry strategy for Java can be found in the source code: PredefinedRetryPolicies.java

Jamboree answered 18/9, 2019 at 18:33 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.