Reputation: 655
I've a sails.js app where I've used mongodb
as persistent layer and redis
as cache.
However I want to move to AWS DAX so that I can hold large dataset in cache and also I want to use dynamodb as mongodb replacement.
sails.js has a waterline adapter for dynamodb But I am not sure how I can use AWS DAX on my app.
I've found one example with java in aws dynamodb docs But not sure how can I use on my node.js app.
Thanks in adavance for any kind of help.
Upvotes: 3
Views: 2317
Reputation: 841
DAX has just released a Node.js client. Check the documentation for how to get started.
Upvotes: 1
Reputation: 655
As an update, I've tried to use dax with node.js using node-java, I was able to create dynamodb tables but not able to use dax feature as I would have expected. There is some exception coming up using dax.
I've contacted with aws support and they said they are working on aws-javascript sdk to support dax but there is no speicific release date.
However, if anyone interested on how I've tried they may look at https://github.com/jsec516/node-dax/tree/with-try-dax There is some manual setup required on ec2 instance and also you've to compile the java files before you try to run it.
Let me know if you need any help to run.
Upvotes: 0
Reputation: 5111
Today, DAX supports an SDK for Java, and does not yet have an SDK for Node.js
Upvotes: 1
Reputation: 88
Not sure about the DAX, but for DynamoDB- if you want an ORM, so if the waterline adapter is good for you so use it, when I checked it a few months ago I got an impression that it's not well-maintained but it looks like lately it's active again so maybe this can be a good solution.
Anyway, you can also check Vogels: https://github.com/ryanfitz/vogels/
Note there in Github issues #171 and #198
Dynogels: https://github.com/clarkie/dynogels
Upvotes: 0