2

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.

Joseph Idziorek
  • 4,853
  • 6
  • 23
  • 37

4 Answers4

1

Today, DAX supports an SDK for Java, and does not yet have an SDK for Node.js

Joseph Idziorek
  • 4,853
  • 6
  • 23
  • 37
0

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

Cz01
  • 68
  • 7
  • I've already mentioned about the dynamodb adapter in my question https://github.com/gadelkareem/sails-dynamodb and it's using vogels internally. what I am really looking for a solution for DAX (dynamodb part was required to give some context). Thanks for your effort though. – MD. Jahidul Islam Jun 13 '17 at 11:48
0

(1st July 2017)

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.

Community
  • 1
  • 1
0

DAX has just released a Node.js client. Check the documentation for how to get started.