couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nebu Pookins <>
Subject Re: Peer-to-Peer Replication
Date Thu, 07 Apr 2011 15:17:55 GMT
On Wed, Apr 6, 2011 at 5:47 PM, Zdravko Gligic <> wrote:
> In it's simplest form, consider a large community of members or peers,
> in which each member subscribes to one or more of a dozen CouchDB
> databases.

Each peer would have their own CouchDB. So if you have a thousand
peers, there are a thousand CouchDB instances, each with their local
copy of the database.

> Within each database, community members could post documents, comment
> and/or take other actions on any one doc.  However, each of these
> actions would not be an update to the original docs but would rather
> be creations of new docs.
> The end result should be a situation in which each subscriber
> eventually ends up with all of the documents in their corresponding
> local CouchDB copy.

This is pretty much the default behaviour you get from CouchDB out of
the box. The only issue is you need to make each instance aware of at
least one other instance. And these connections should form a
connected graph if you want everyone to see everyone else's changes.
To "make aware" a particular CouchDB, you simply instruct it to
replicate against a specific other instance (by providing a URL to the
other instance).

- Nebu

View raw message