Skip to content

DynamoDBMapperConfig.DefaultBatchWriteRetryStrategy equivalent in DynamoDB SDK for Java v2 #6536

@nuzayats

Description

@nuzayats

Describe the feature

I'd like to request features which were available in the V1 SDK but missing in the V2 SDK below:

  • Automatic retries for unprocessedItems: DynamoDBMapper#batchSave in the V1 SDK was capable of handling retries of unprocessedItems. However, in the V2 SDK, there seems to be no out of the box equivalent.
  • Automatic breaking down of a large batch into smaller batches: DynamoDBMapper#batchSave in the V1 SDK was capable of breaking a large batch which contains more than 25 items or exceeds the request size limit of 1MB into smaller chunks. The V2 SDK doesn't seem to be capable of this.

More details can be found in: https://stackoverflow.com/questions/78495172/dynamodb-java-sdk-v2-client-batchwrite-retries

Use Case

It was available in the V1 SDK. I have to implement these myself after migrating to the V2 SDK otherwise.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

2.29.6

JDK version used

any

Operating System and version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions