Alex Rivera | Logout

which database suits my application mysql or mongodb ? using Node.js , Backbone , Now.js

Asked 2012-04-11T16:27:33.573
23

I want to make an application like docs.google.com (without its api,completely on my own server) using frontend : backbone backend : node

What database would u think is better ? mysql or mongodb ? Should support good scalability . I am familiar with mysql with php and i will be happy if the answer is mysql. But many tutorials i saw, they used mongodb, why did they use mongodb without mysql ? What should i use ?

Can anyone give me link for some sample application(with source) build using backbone , Node , mysql (or mongo) . or atleast app. with Node and mysql

Thanks

Edit
Report

1 Answer

9

David provided a good answer. A few things to add to it.

  1. MongoDB's flexible nature permits for easy agile / iterative development.
  2. MongoDB like node.js is asyncronous in nature and works very well within asyncronous environments.
  3. Mongoose is a good ODM (object document mapper) that makes working with MongoDB with Node.js feel very natural. Unlike ORMs this is a very thin layer.

For Google Doc like functionality, the flexibility & very rich data structure provided by MongoDB feels like a much better fit.

You can find some good example posts by searching for mongoose, node and MongoDB.

Here's one that also uses backbone.js and looks good http://mattkopala.com/blog/2012/02/12/getting-started-with-nodejs/

answered 2012-04-11T17:31:03.570

Your Answer