Aws sdk for java,dynamo db mapper async
In Amazon Web Services SDK for Java, it is possible to create two different clients for dynamodb: sync and async You can then pass these two objects to the dynamodb mapper constructor Therefore, you should be able to create two different types of dynamodb mapper: synchronous mapper and asynchronous mapper
My question is: how does the asynchronous mapper work? I can't find any method in the asynchronous mapper to return the future object So how can I run multiple queries asynchronously if I have to always wait for the return value of any method of the asynchronous mapper?
thank you
Solution
The asynchronous dynamodb client extends from the synchronous client and provides a new method name for asynchronous operations that return futures Currently, dynamodb mapper will always use the synchronization method of any Amazon dynamodb client you pass in We will use the mapper to treat this feedback as a function request for asynchronous support