Fork me on GitHub

CouchDB provides a simple to use and efficient master-to-master replication protocol.

In Sohva you can use this feature using the replicator.

val replicator = couch.replicator

The Replicator class provides methods to start and stop replication.

val replication = Replication("replication1", LocalDb("source_db"), RemoteDb(new URL("http://host/5984/target_db"), continuous = Some(true))

// after a while