michaellavelle / spring-data-dynamodb

Simplifies the development of creating an Amazon DynamoDB-based Java data access layer
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
169 stars 284 forks source link

ProvisionedThroughputExceededException #97

Closed cesdperez closed 4 years ago

cesdperez commented 6 years ago

spring-data-dynamodb version: 4.4.1 spring-boot version: 1.4.2.RELEASE

--

I'm sometimes getting the infamous ProvisionedThroughputExceededException. The AWS SDKs for DynamoDB automatically retry requests that receive this exception (it uses an exponential backoff), you can also configure the retry policy.

I'm trying to achieve a similar retry strategy with spring-data-dynamodb, so I'm wondering if I can configure the AmazonDynamoDBClient it uses behind the scenes. Another option could be using spring-retry. I'm open to suggestions.