derjust / spring-data-dynamodb

This module deals with enhanced support for a data access layer built on AWS DynamoDB.
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
401 stars 141 forks source link

Use DynamoDBAsync client with spring-data-dynamodb #210

Open sarbajitdutta opened 5 years ago

sarbajitdutta commented 5 years ago

Is it possible to use use DynamoDBAsync client with spring-data-dynamodb? If yes how can it be configured.

derjust commented 5 years ago

Right now it is not supported - spring-data's JDK8 features are supported - but those simulate async behavior on top of the regular DynamoDBClient.

sarbajitdutta commented 5 years ago

Do you have an example how this can be achieved?

derjust commented 5 years ago

Have a look here: https://github.com/derjust/spring-data-dynamodb/blob/44fc7400d719dbda16627210aa6172e0041035aa/src/test/java/org/socialsignin/spring/data/dynamodb/domain/sample/UserRepository.java#L42-L43 and https://github.com/derjust/spring-data-dynamodb/blob/44fc7400d719dbda16627210aa6172e0041035aa/src/test/java/org/socialsignin/spring/data/dynamodb/domain/sample/Jdk8IT.java#L101-L103

Does it help?