Meteor with Dynamo

I have a meteor application running in the Amazon cloud and I have a question whether it can use dynamoDB.

I am looking on the Internet, but can find something about meteor and dynamoDB together. So the question is, can a meteor use dynamoDB instead of mongodb?

+6
source share
3 answers

It is possible, but very difficult!

Meteor works by having "minimongo" on the browser client and "correct mongo" on the server. This allows it to track changes on the client side and on the server side.

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

Thus, you will have a lot of effort to find how to set up a meteorite to take DynamoDB, which will then lead to a version of Meteor that does not have the same functionality (live hits from the server).

It will not be fun!

+5
source

There is a package for this. I just tried installing Cloudant, but if it works, it should work with DynamoDB.

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

Just add this package to your project:

Meteor add ccorcos: any-db

Instead of having a mini-database on the client, we simply have a subscribing object that presents the results of the request on the server side.

+1
source

If you are already on aws then you can definitely use DynamoDB. Meteor is a pure JS platform, and DynamoDB has JavaScript support. Check out this link: DynamoDB Getting Started

-3
source

Source: https://habr.com/ru/post/974746/


All Articles