First Impressions of Sitting a Web App on CouchDB
victusspiritus.com
First Impressions of Sitting a Web App on CouchDB
1–10 of 21 posts
Re: First Impressions of Sitting a Web App on CouchDB
#2Re: First Impressions of Sitting a Web App on CouchDB
#3Re: First Impressions of Sitting a Web App on CouchDB
#4Re: First Impressions of Sitting a Web App on CouchDB
#5Is the idea supposed to be that a web client (html+js) reads and writes directly to a CouchDB server? Where do you put business logic?
for an app written in coudb:
http://guide.couchdb.org/editions/1/en/managing.html is a breakdown of the source tree and explains things.
Re: First Impressions of Sitting a Web App on CouchDB
#6Is the idea supposed to be that a web client (html+js) reads and writes directly to a CouchDB server? Where do you put business logic?
Force yourself to use CouchDB for a project where you're handling large amounts of data and you'll discover how incredible it really is. There's tons of other great features you'l pick up along the way too.
Re: First Impressions of Sitting a Web App on CouchDB
#7Re: First Impressions of Sitting a Web App on CouchDB
#8Is the idea supposed to be that a web client (html+js) reads and writes directly to a CouchDB server? Where do you put business logic?
I've written an introduction to using Evently and CouchApp if you're interested in seeing how that works[2].
Re: First Impressions of Sitting a Web App on CouchDB
#9On the one hand, it saves having to context switch between thinking about the database, thinking about the web server, thinking about the web framework, etc.. For a single developer, this is not to be sniffed at. As learning is often done by lone experimentation, it makes CouchDB an excellent system for learning about NoSQL. It's also great for prototyping, where you don't necessarily want to spend a huge amount of time creating an industrial strength back-end.
On the flip-side, it means that if you do run into a situation where you want to use another layer, you've just given up the biggest advantage of CouchDB. For my current project, I found I would need to be able to integrate authentication with an existing Kerberos system - the easiest way to do this was to use Apache.
I also had slight reservations about CouchDB's approach of limiting what you can do - everything has to be a map-reduce - to ensure scalability. The plan as I understand it is to introduce further safe operations down the road. I'm sure that approach will yield dividends, but for now it seems quite limiting - similar to eschewing C in the 70s because it does not have garbage collection.
Didn't mean to beat up on CouchDB too much - it's a fine system, but I prefer the flexibility of MongoDB at this point.
Re: First Impressions of Sitting a Web App on CouchDB
#10From the article: "CouchDB + Another Layer as Web Server is Redundant". This is very true, and the biggest difference to other databases I've used, NoSQL or not. It ends up being a double-edged sword for CouchDB. On the one hand, it saves having to context switch between thinking about the database, thinking about the web server, thinking about the web framework, etc.. For a single developer, this is not to be sniffe…