Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor with DynamoDB

I have my meteor application running in amazons cloud, and got the question if it can use dynamoDB.

I search the web but could find anything about meteor & dynamoDB together. So the question is, can meteor use dynamoDB instead of mongodb ?

like image 554
Jeanluca Scaljeri Avatar asked Sep 03 '14 10:09

Jeanluca Scaljeri


2 Answers

It's possible but very difficult!

Meteor works by having 'minimongo' on the browser client and 'proper mongo' on the server. This then allows it to keep track of changes on the client side and the server side.

There's also some really useful bits where the server pays attention to changes to the serverdb in real time using Mongodb's Oplog - a function a bit like SQL triggers.

You'll therefore have lots of effort finding how to tweak meteor to take DynamoDB which will then result in a version of Meteor that doesn't have the same functionality (live udpates from the server).

Won't be fun!

like image 132
Malcolm Murdoch Avatar answered Sep 20 '22 18:09

Malcolm Murdoch


There is a package for this. I have only tried Cloudant setup, but if it works there is should work with DynamoDB.

https://github.com/ccorcos/meteor-any-db

Simply add this package to your project:

meteor add ccorcos:any-db

Rather than have a mini-database on the client, we simply have a subscription-cursor object that represents the results of a server-side query.

like image 37
Kimmo Hintikka Avatar answered Sep 21 '22 18:09

Kimmo Hintikka