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 B728D9876 for ; Thu, 19 Jan 2012 21:58:08 +0000 (UTC) Received: (qmail 98325 invoked by uid 500); 19 Jan 2012 21:58:08 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98242 invoked by uid 500); 19 Jan 2012 21:58:07 -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 98234 invoked by uid 99); 19 Jan 2012 21:58:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 21:58:07 +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 paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 21:58:01 +0000 Received: by vcmm1 with SMTP id m1so508132vcm.11 for ; Thu, 19 Jan 2012 13:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=m1tRBhp67g8sNb6Laf26vAzWwBusotxo1PEQbQ4bqd8=; b=yIaDpkGcydXVW5pVBfp3ldstQQ0pW3WO8wPU/UNtHpVVvMT1otV8c77e6wvoNFHQeP QTT0xAiMdpzIPQHzm7EL1JTqhxFDSmozTkjxc9z/ntY/+DF9aTrzyKG8sQT9bLz7R5VB sXxM8khL9/CzND7FvY9QVdGUVV0giQ5NqmOzo= Received: by 10.220.155.142 with SMTP id s14mr16350842vcw.1.1327010260251; Thu, 19 Jan 2012 13:57:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.7.208 with HTTP; Thu, 19 Jan 2012 13:56:59 -0800 (PST) In-Reply-To: References: From: Paul Davis Date: Thu, 19 Jan 2012 15:56:59 -0600 Message-ID: Subject: Re: Do we need 2 entry points for the replication? To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2012 at 3:52 PM, Robert Newson wrote: > I would prefer to see a single /_replicate entrypoint, with, say, > "persistent":true to indicate that the replication settings should be > stored. We would also need an API to list all persistent replication > tasks and one to delete them. Which would look a lot like the > _replicator database, though much more controlled (no public passwords > for those jobs that require auth). > +1 > I think it's too late, though. There's work on master to fix the > issues with _replicator now (and the similar ones in _user). While I > don't like the approach, it does solve the problem. > We can break it eventually and I think we should consider it sooner rather than later. > Bottom line: It's my opinion that _replicator (and _user) were wrongly > exposed as full-blooded databases when all =A0we needed to use was the > database format (and carefully curate API endpoints). But, alas, that > train has sailed. > I seem to recall someone else with a similar opinion even when these things were being designed. ;) Also, what kind of crazy sailing trains do you brits have over there and how do I get a ticket to ride on one? > B. > > On 19 January 2012 21:45, Benoit Chesneau wrote: >> 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 =A0propose to keep only one entry point : _replicate and pass the >> parameter we want to it. What do you think ? >> >> - benoit