Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 50033 invoked from network); 30 Oct 2009 13:10:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 13:10:17 -0000 Received: (qmail 43616 invoked by uid 500); 30 Oct 2009 13:10:17 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 43537 invoked by uid 500); 30 Oct 2009 13:10:17 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 43528 invoked by uid 500); 30 Oct 2009 13:10:17 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 43525 invoked by uid 99); 30 Oct 2009 13:10:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 13:10:17 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 13:10:06 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B64D216E31; Fri, 30 Oct 2009 13:09:45 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 30 Oct 2009 13:09:45 -0000 Message-ID: <20091030130945.27790.23782@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Trivial_Update_of_=22Replication=5Fand=5Fcon?= =?utf-8?q?flicts=22_by_BrianCandler?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "Replication_and_conflicts" page has been changed by BrianCandler. http://wiki.apache.org/couchdb/Replication_and_conflicts?action=3Ddiff&rev1= =3D2&rev2=3D3 -------------------------------------------------- - ## page was renamed from Replications_and_conflicts =3D Replication and conflict model =3D = Let's take the following example to illustrate replication and conflict @@ -11, +10 @@ * On the desktop PC, she updates Bob's E-mail address. Without syncing again, she updates Bob's mobile number on the laptop. * Then she replicates the two to each other again + = + So on the desktop the document has Bob's new E-mail address and his old m= obile number, and on the laptop it has his old E-mail address and his new m= obile number. = The question is, what happens to these conflicting updated documents? = @@ -356, +357 @@ = =3D=3D Unison =3D=3D = - [http://www.cis.upenn.edu/~bcpierce/unison/ Unison] is a bi-directional f= ile + [[http://www.cis.upenn.edu/~bcpierce/unison/|Unison]] is a bi-directional= file synchronisation tool. In this case, the business card would be a file, say bob.vcf. = @@ -391, +392 @@ = =3D=3D Git =3D=3D = - [http://git-scm.com/ Git] is a well-known distributed source control syst= em. + [[http://git-scm.com/|Git]] is a well-known distributed source control sy= stem. Like unison, git deals with files. However, git considers the state of a whole set of files as a single object, the "tree". Whenever you save an update, you create a "commit" which points to both the updated tree and t= he @@ -514, +515 @@ = =3D=3D Amazon Dynamo =3D=3D = - [http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html Dynamo] + [[http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html|Dynamo]] is designed as an "always writeable" key-value store, so it has no equiva= lent to the 409 conflict avoidance. It encourages users to perform conflict resolution on read: a read operation provides all the conflicting versions plus a