These are chat archives for LearnBoost/mongoose

20th
Feb 2015
Hengki Sihombing
@hengkiardo
Feb 20 2015 09:32
@vkarpov15 and all of you in this room, please take a look for this one http://www.reddit.com/r/node/comments/2vn542/why_everybody_uses_nodejs_with_mongodb/
Valeri Karpov
@vkarpov15
Feb 20 2015 15:08
His comment doesn't really make any new or interesting points IMO. Yes NodeJS is better than PHP. No MongoDB doesn't support multi-document transactions, although you can implement that on the application layer using findAndModify, so if you're going to be writing software whose primary purpose is handling financial transactions directly (e.g. take from one user, give to another, all in one ACID op) MongoDB might not be a good fit. But in most cases you wouldn't write that these days - more often than not you'd just integrate with PayPal or Braintree. I think much of the reason why NodeJS tutorials love using MongoDB is that it's painfully easy to get started with MongoDB - no need to create collections, a shell that uses JS, you're up and running reading and writing data without any extra setup.