Home > Net >  DAX Cluster - How does it know which DynamoDB Table to talk to?
DAX Cluster - How does it know which DynamoDB Table to talk to?

Time:11-08

I have just started learning about using DAX for DynamoDB. While the architecture is clear - no where during the setup of DAX did I find it point to a DynamoDB cluster in its setup. How does DAX know which DynamoDB table to connect if all we're providing from the client is the DAX endpoint?

enter image description here

CodePudding user response:

DAX has same interface as using regular AWS SDK to work with DynamoDB.

So, just like when you query regular DynamoDB, you specify table at each query. For example, in python:

# dyn_resource will be reference to your DAX cluster
table = dyn_resource.Table('TryDaxTable')
table.get_item(...)
  • Related