From user-return-15692-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Apr 07 15:18:27 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 75657 invoked from network); 7 Apr 2011 15:18:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 15:18:27 -0000 Received: (qmail 75961 invoked by uid 500); 7 Apr 2011 15:18:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75860 invoked by uid 500); 7 Apr 2011 15:18:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 75811 invoked by uid 99); 7 Apr 2011 15:18:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 15:18:24 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nebupookins@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 15:18:17 +0000 Received: by ywa1 with SMTP id 1so1908793ywa.11 for ; Thu, 07 Apr 2011 08:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Z7TrTzF/mDN2ZLcb7SJ/ol26NdhzxpZOwg4xok09zrU=; b=krLs5u+TjPBRrlr9Sf5GmRr2lllLNAazNOg31uTxKpsVCwYgKUi/vCIjzwKCllRyKL 9DnDjBdlRESTNQIpzwYGuGBEzAQZAG4Wsv7cCO90sDBNc3sKL5MqNdFbSuOUmo1/inhJ iMvWQ4PTKzUTOmwMQ0mwMBgaYH48vc2/JtsS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ZYkNgLKEktJB0IxvsFxLNJESLvLg/s9yuOky21ydFOCJUyxCT3GACDLWvW8IAWxBg4 xdm5wpIyPOKFdcTrEGVNunh/deHFi37E3/oaxLE0eECSoj2T6PQVyVWHo0TFlnoBb/rE q4laMfH8jIFXH5zHWZv/IeNQtAJg9i7C1oBcc= MIME-Version: 1.0 Received: by 10.101.129.16 with SMTP id g16mr692534ann.120.1302189475941; Thu, 07 Apr 2011 08:17:55 -0700 (PDT) Received: by 10.100.107.8 with HTTP; Thu, 7 Apr 2011 08:17:55 -0700 (PDT) In-Reply-To: References: <4D9CBEEB.3090102@facilityone.com> <4D9CD977.8080707@facilityone.com> Date: Thu, 7 Apr 2011 11:17:55 -0400 Message-ID: Subject: Re: Peer-to-Peer Replication From: Nebu Pookins To: user@couchdb.apache.org Cc: Zdravko Gligic , Owen Marshall Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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. =C2=A0However, 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