Does Sails.js or Meteor.js work with ArangoDB or OrientDB?

拥有回忆 提交于 2019-12-10 13:18:20

问题


I'm planning to work on a social site and I would like to leverage both a document and graph database for all of the desired features. Is there a way to get Meteor.js or Sail.js (or any better) to work with ArangoDB or OrientDB? Or should I just stick with the bundled MongoDB and integrate something like allegrograph DB?


回答1:


Sails.js has support for both of the databases you mention:

  • https://www.npmjs.com/package/sails-orientdb
  • https://github.com/rosmo/sails-arangodb

In addition to MongoDB, Postgres, and dozens of others.




回答2:


Sails.js is a classic mvc client-server web application framwork, basically its ruby on rails implemented for node.js + webscockets, so mostly all you need to make it work with any backend database is make changes to the orm.

Meteor is a very different beast, it is a very opinionated realtime end to end web framework including client server and database, by behing very very opinionated it solves many of the common issues in realtime application, where you need to implement a mechanisms for very quickly updating all your clients of each others actions and take care of things like latency compensation, data collision resolution, and real time client version managment, This is implemented by using web sockets and the mongoDB's write ahead logging for triggres of data updates, making meteor somewhat coupled with mongo.

But you can make orientdb work pretty well with meteor using the new orientDB live query api. It is a pubsub implementation for query results, and can be used for efficent updates pushed from the db through the server directly to the client with very little overhead on the server. This is far from production ready and only currently works on the orient db 2.1 rc5 version.

I have implemented a small meteor demo application as an example https://github.com/imdark/meteor-orientdb-demo




回答3:


Please check on Meteorpedia the Alternative Database Post, they mention neo4j-livedata and minineo4j.

Here is the Atmosphere package: ostrio:neo4jdriver

Is there a specific economic or technological reason why you consider not to use the very well integrated mongoDB as the database of choice?




回答4:


In addition to Travis answer I also recommend waterline-orientdb for Sails.js.



来源:https://stackoverflow.com/questions/28789100/does-sails-js-or-meteor-js-work-with-arangodb-or-orientdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!