couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <>
Subject Re: Do we need 2 entry points for the replication?
Date Sun, 22 Jan 2012 20:03:51 GMT
On 19 January 2012 22:56, Paul Davis <> wrote:
> 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 while I understand *why* we have different APIs at the moment, it
is definitely
confusing for people.

>> 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.

As Damien observed, sometimes its not until you tried already that you
understand the requirements better.

ATM we are concerned that the short-term user impact of reverting an
API decision is greater than the damage done long-term by having
something that *every* future user will struggle with.

Either we release new APIs more frequently, perhaps with an experimental
tag, to get real-world feedback, or we need to batch these things up
for a larger
2.0 release where we revert a lot of existing functionality.

Are there other options that help get features to users quickly, and enable
tidying up in future?

>> Bottom line: It's my opinion that _replicator (and _user) were wrongly
>> exposed as full-blooded databases when all  we 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?


View raw message