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 ?
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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With