Skip to content

DAX support #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #374
joeyhotz opened this issue May 28, 2020 · 5 comments
Closed
Tracked by #374

DAX support #305

joeyhotz opened this issue May 28, 2020 · 5 comments
Labels

Comments

@joeyhotz
Copy link

Do you allow users to modify the dynamodb client used by dynamo easy? I want to be open to using DAX in the future and I'm not sure if this is supported from looking at the docs.

@ali-habibzadeh
Copy link

ali-habibzadeh commented Jun 7, 2020

Ideal updateDynamoEasyConfig would have an additional field where we can pass client into and since Dax and Dynamodb have the same api, it shouldn't cause architecture change for dynamo-easy, besides abstracting out the underlying client used. Currently they are hardcoded inside dynamo services like import * as DynamoDB from 'aws-sdk/clients/dynamodb'.

However it shouldn't be a global setting only as most likely applications will consist of both tables that directly use Dynamodb client and tables assiciated with a dax cluster.

@joeyhotz in the meantime, if you don't have specific need for using the Transactions API then you can use https://github.com/awslabs/dynamodb-data-mapper-js which does support decorators like this but is also flexible in terms of taking client as an argument.

@simonmumenthaler
Copy link
Contributor

hi @joeyhotz @ali-habibzadeh
I never worked with the DAX client - but:
The DynamoStore constructor takes as the second argument an optional DynamoDB client instance. So if the API from DAX is compatible it should already work. (Also every non-store request class (eg. BatchGetRequest) accepts an optional dynamoDB client)

I'd be nice if you could evaluate this :)

@itsdarrylnorris
Copy link

Hey @joeyhotz,

Any luck running DAX? I am considering using DAX on a project that I am working on right now.

@joeyhotz
Copy link
Author

joeyhotz commented Jul 14, 2020 via email

@michaelwittwer
Copy link
Member

closing this in favour of #374 holding relevant topics to be updated in the docs, serving as a knowledge base for now and also describing the strategy of the technical solution of the documentation part, envision it to be closer to the source code of the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants