Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 878
Quanterreo Cutter Avatar asked Mar 01 '15 01:03

Quanterreo Cutter


4 Answers

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.

like image 101
Travis Webb Avatar answered Oct 22 '22 18:10

Travis Webb


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

like image 44
Micheal Kris Avatar answered Oct 22 '22 17:10

Micheal Kris


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?

like image 45
Meteorpoly Avatar answered Oct 22 '22 18:10

Meteorpoly


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

like image 39
Dário Avatar answered Oct 22 '22 17:10

Dário