Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB in Production

Tags:

couchdb

I have been using CouchDB on some prototype applications and it has been brilliant, very easy to use and extremely quick. I was wondering if anyone has been using it in production and have any views on it's reliability, performance suitability for operational management etc ?? I am considering using it to support a service layer and would make use of its replication functionality.

Any comments/experiences would be most welcome.

like image 968
NoelAdy Avatar asked Jun 12 '10 17:06

NoelAdy


People also ask

Is CouchDB better than MongoDB?

CouchDB is safer than MongoDB. MongoDB, the database contains collections and collection contains documents. CouchDB is eventually consistent. MongoDB is strongly consistent.

What is CouchDB used for?

CouchDB uses views as the primary tool for running queries and creating reports from stored document files. Views allow you to filter documents to find information relevant to a particular database process. This information can then be mapped according to your preferences and extracted in a specific order.

Is CouchDB faster than MongoDB?

Faster reads: MongoDB provides faster reads than CouchDB as MongoDB uses a binary protocol that is faster than CouchDB's RESTful HTTP API method. Replication: MongoDB only offers master-slave replication across replication sets.


2 Answers

I've used CouchDB for a few small in-house applications - it's been very stable and I've had no serious complaints. Setting that aside, a few small gripes -

1) Databases can be synchronized, but not nodes. That is, if you have four servers and twenty databases, you have to specify each server, and each database to synchronize. A minor gripe, but I prefer less management to more.

2) Since databases are append only, a database with a bunch of activity gets really big really quickly. Compacting fixes this, but isn't exactly fast, especially on big (e.g. 20 gigabytes) database. Scheduling compact for the weekends solved this, but doing that is probably less of an option for high availability applications.

3) Javascript is the de facto view language. What is not well advertised is that since CouchDB is written in Erlang, it also supports Erlang views, which are faster as they are "native". For applications doing a lot of operations in views, Erlang probably makes more sense.

Setting those minor issues aside, I'd wholeheartedly recommend it.

like image 61
lazyconfabulator Avatar answered Oct 05 '22 08:10

lazyconfabulator


CouchDB ships in Ubuntu and is a fundamental component of the Ubuntu One service.

like image 39
JasonSmith Avatar answered Oct 05 '22 06:10

JasonSmith