couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <>
Subject Do we need 2 entry points for the replication?
Date Thu, 19 Jan 2012 21:45:26 GMT
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

View raw message