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 CCF0991C3 for ; Thu, 19 Jan 2012 21:45:55 +0000 (UTC) Received: (qmail 73736 invoked by uid 500); 19 Jan 2012 21:45:55 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 73678 invoked by uid 500); 19 Jan 2012 21:45:54 -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 73666 invoked by uid 99); 19 Jan 2012 21:45:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 21:45:54 +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 (nike.apache.org: domain of bchesneau@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 21:45:46 +0000 Received: by eekc50 with SMTP id c50so184488eek.11 for ; Thu, 19 Jan 2012 13:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=4w2rJKi9eKC0liAx8lUa6uovreDlyM1wrvEVm/kmk4I=; b=Erqw2XunnXosvyNACIUOwAlTPSn2T4GKX68bg+NG6DGYBMwNIJLvTRihVN4D3+vZ5Z bsbOlYoVgPRTxKSA+ZLJk+8BwmZOJBFS01Bmz/o7Xe3rNTF1M3bNcoFWp/OqdFC7LJcK n+mWrXyrAN/10ZtHFM4QGlQfv/R37aRhcfNNs= MIME-Version: 1.0 Received: by 10.14.11.24 with SMTP id 24mr2353136eew.37.1327009526699; Thu, 19 Jan 2012 13:45:26 -0800 (PST) Received: by 10.213.35.130 with HTTP; Thu, 19 Jan 2012 13:45:26 -0800 (PST) Date: Thu, 19 Jan 2012 13:45:26 -0800 Message-ID: Subject: Do we need 2 entry points for the replication? 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 Think it's time to relaunch this threads following the 2 separate discussions that we had this morning. Actually we have 2 ways to handle the replication: - `_replicate` : which isn't persistent and where you can follow the task in active tasks - `_replicator`: wich is a plain db where any replication task is persistent. In that case even if a replication task is finished, a document stay in the replicator db and you will have to delete it and compact the db from time to time. Both are their use cases, and while i think it's good to keep the different approaches (persisten against fire and forget), I think the API should be more consistent by offering only 1 end point for the replication. We could then having different parameters depending on the replication type we want (persistent or fire and forget). Also both should appear in the active tasks (maybe this point have been solved since). So I propose to keep only one entry point : _replicate and pass the parameter we want to it. What do you think ? - benoit