Aws-sdk-java: DynamoDBAsyncMapper for AmazonDynamoDBAsyncClient.

Created on 18 Mar 2014  路  8Comments  路  Source: aws/aws-sdk-java

The asynchronous DynamoDB client extends from the synchronous client, and provides new method names for the asynchronous operations that return Futures.

Currently the DynamoDBMapper will always use the synchronous methods of whatever AmazonDynamoDB client that you pass in.

The feature requested is asynchronous support using the mapper.

feature-request

Most helpful comment

Is this feature available?

All 8 comments

Any update on this?

This is not something we'll likely get to soon. With Java 8 it becomes very easy to submit a method as an async task so the utility of an async version of the mapper (or clients) is not as great. That coupled with the ability to use completable feature makes it a more attractive option for async programming.

+1

@shorea there's already an async support which is the Async client. isn't using java 8 to invoke the sync mapper is yet another async implementation? is the best practice now is to copy/paste the sync mapper code and run the async client? or create the additional async implementation and run the synced mapper?

Is this feature available?

It is almost 2020 and we don't have any mapper yet for something which is now getting main stream, like using reactive all the way down to this DB with the ease of the model annotations. I think this should have more priority, the non-async version has even better 3rd party support, which is a shame.

@n3whous3 We fixed it by removing DynamoDB, it works!

We're tracking this in V2: https://github.com/aws/aws-sdk-java-v2/issues/35

Non-blocking support is currently in scope for the V2 mapper's GA.

Was this page helpful?
0 / 5 - 0 ratings