News for hackers. Stuff that matters.
Re:Help Scale NPM by applecore on Tuesday November 26, 2013 @12:19PM (#6802654)
I'm surprised they're using CouchDB and not MongoDB.
Re:Help Scale NPM by nathan7 on Tuesday November 26, 2013 @01:15PM (#6803031)
npm is pretty much the prime use-case for CouchDB. REST API out of the box, replication is a core feature and not just a scaling feature (multi-master, MVCC) and the validation/access control is pretty much made for it. The npm registry is implemented as a CouchApp for a reason.
Re:Help Scale NPM by remon on Tuesday November 26, 2013 @03:23PM (#6803932)
I agree that from a functionality perspective this is largely true, at least on paper. That said, if running costs become a significant bottleneck CouchDB becomes a less obvious choice. Sometimes there's a reluctance to migrate from one technology to another as requirements change over time but this seems one of those occasions where exactly that step is required. Sometimes it's good to take a step back, look at your current requirements in terms of cost and performance and determine what technology best suits your needs. I would question the know-how and objectivity of anyone that would land on CouchDB/node.js in this instance.
Re:Help Scale NPM by nathan7 on Tuesday November 26, 2013 @04:20PM (#6804296)
There's no node involved in the registry itself. This is purely CouchDB.
Re:Help Scale NPM by nawitus on Tuesday November 26, 2013 @01:11PM (#6802995)
CouchDB has better replication support (e.g. multi-master, MVCC).
Re:Help Scale NPM by cleverjake on Tuesday November 26, 2013 @12:55PM (#6802892)
a lot of the central node community started on couch
Re:Help Scale NPM by twerquie on Tuesday November 26, 2013 @12:52PM (#6802858)
Why?