CouchDB has a nice, simple and complete HTTP API. It can also feed a keep-alive socket with the changes happening in a database, thanks to the continuous feed. And this is a nice feature to be used in a real-time application.
There are three available APIs for querying data:
I’ve started a serie of articles in which I’ll explain the flow of requests I’m using to get data from CouchDB and to keep it synchronized with changes on the database, regardless of the API.
The first article involves the CouchDB document API and is available on github: https://github.com/flams/emily/wiki/CouchDB-document-in-a-real-time-application