Search code examples
amazon-web-servicesamazon-dynamodbamazon-dynamodb-dax

Does DynamoDBMapper work with DAX?


I was wondering if DynamoDBMapper can be used to query DAX? I couldn't find any mention of the use of DynamoDBMapper and DAX in the developer guide.

It seems like I can pass in the DAX client when constructing an instance of DynamoDBMapper, but since I don't have a provision of DAX, I can't really test it out to see if it works or not.


Solution

  • Yes, the instance returned from AmazonDaxClientBuilder.build() can be passed to the DynamoDBMapper constructor and it should work. If it doesn't, that's a bug and we'll fix it.