Skip to content
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

AWS DAX Integration #86

Open
ricky-sb opened this issue Nov 15, 2019 · 0 comments
Open

AWS DAX Integration #86

ricky-sb opened this issue Nov 15, 2019 · 0 comments

Comments

@ricky-sb
Copy link

Since this library sits on top of boto3, it makes it really easy to integrate it with DAX.

https://pypi.org/project/amazon-dax-client/

On instantiation, perhaps in resource_kwargs, we should have an option for dax_endpoint_url, which, if set, would return a DAX client instance.

Example:

Over here, we just add something like:

if `dax_endpoint_url` in resource_kwargs:
    return AmazonDaxClient.resource(endpoint_url=resource_kwargs['dax_endpoint_url'])

and import the DAX client library at the top of the file.

Everything else remains the same. The calls are automatically mapped to DAX. The one caveat being:

The Amazon DAX client does not support table operations. Any table manipulation operations must use the regular Boto3 or botocore DynamoDB client.

So in our table operations method, we'd need to check if we're using DAX or not, and raise an error accordingly.

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

No branches or pull requests

1 participant