kurtmilam/Backbone.dualStorage — comment on commit f20ca9ced1c55bc42572a06441aff6615f967ef9
File:  line 0
By kurtmilam:

That's correct - backbone talks to the local couchdb, and the local couchdb handles replication with the remote server.

The general idea behind CouchDB is to offer a two-tier model - client and CouchDB. You can't really process incoming data on the server within CouchDB, other than to validate it. You can stream change notifications out to another process, if you really need to do some server-side work on data.

What I'm finding is that that's rarely necessary in many cases, if I approach things from the right angle. You have the utmost flexibility in your document structures, and they're pure JSON with a REST API. Once I stopped thinking about things in terms of relational database models, the document approach became clearer, and new solutions to old problems opened up.

You ought to take a look at it when you have some free time. It took me around half an hour to get CouchDB running on my PC and have my Backbone app interacting with it. Painless, and worth the effort, imo.