You can use AmazonDynamoDBAsyncClient from the AWS Java SDK as a non-blocking client.
Play 2 and AWS DynamoDB - is there a reactive api library available?
-
12-06-2023 - |
Question
ReactiveMongo exists to allow us to be 'reactive' with Mongo. Does such a library exist for connecting to AWS DynamoDB in a reactive, non-blocking fashion. Thanks in advance.
Solution 2
OTHER TIPS
As per AWS docs, there is no fully non-blocking, reactive SDK for Dynamo. The mentioned "AmazonDynamoDBAsyncClient" doesn't block the caller thread(The thread which has triggered as dynamodb request) but there is still a thread internally being used and blocked. It is just a helper utility for developers but it would not save from thread hell.
Ref: AWS blog
But do check "https://github.com/piotrga/async-dynamo" which is built on Akka framework which has asyncIO support from groundup. But I didnt personally try this
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow