Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA63310776 for ; Thu, 20 Jun 2013 07:51:45 +0000 (UTC) Received: (qmail 51693 invoked by uid 500); 20 Jun 2013 07:51:45 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51332 invoked by uid 500); 20 Jun 2013 07:51:44 -0000 Mailing-List: contact dev-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 dev@couchdb.apache.org Received: (qmail 51305 invoked by uid 99); 20 Jun 2013 07:51:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 07:51:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.128.47 as permitted sender) Received: from [209.85.128.47] (HELO mail-qe0-f47.google.com) (209.85.128.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 07:51:34 +0000 Received: by mail-qe0-f47.google.com with SMTP id 1so3758496qec.6 for ; Thu, 20 Jun 2013 00:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CjgleI/Vj+raF8KffAnWUHN6CRA5tx7OcSjPQ/auTw0=; b=pNgYdGnT8Hm1R8m2bOM15khUdDyjVs4pDhqUo+duCJ1KFNz5KtvY0l+C8IxjedT6UA aCLrAvyN3oto8HcUiItbbQOcut+MdFHNj3RDXO8llv2bZwL2s57MK9Sg/fo3mjm6uF0Q HXH/oKMuEDKrc2O+fbpLtJ1tNYgBYAXB9/3pLsgOtRafkqgj8Mys1EGg8uP2lnx2dPG1 zmZrowrVZJGtHXyWcKNjdFFOESi5MPm7BLzB3/aBhWE4lucdeNOGfr1vk7ysKiEo6xR7 B0ICdg8yT6Sxg11PDBeEDSFFl8aCw0lEoRBHsWHr6rCIpRkammwoT52ePPgzjN63AmDL cdxw== MIME-Version: 1.0 X-Received: by 10.224.88.74 with SMTP id z10mr7734929qal.26.1371714673537; Thu, 20 Jun 2013 00:51:13 -0700 (PDT) Received: by 10.49.128.136 with HTTP; Thu, 20 Jun 2013 00:51:13 -0700 (PDT) Date: Thu, 20 Jun 2013 09:51:13 +0200 Message-ID: Subject: couchdb replication algorithm From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I've written sometimes ago for another usage a document describing the replication algorithm in pseudo-code: https://github.com/refuge/rcouch/wiki/Replication-Algorithm Utltimately this document would allow me to write an alternative replicator to couchdb that would work with any kind of storages. Hopefully someone can help me to fix the errors and provide some basic implementation either in Go or Python (for readability). It can als be completed with the excellent doc of +Jens Alfke : https://github.com/couchbase/couchbase-lite-ios/wiki/Replication-Algorithm or the one in dataprotocols: http://www.dataprotocols.org/en/latest/couchdb_replication.html Any help is appreciated on that topic. Also at the end I think this document would allow to close the Jira issue: https://issues.apache.org/jira/browse/COUCHDB-1824 - benoit