Active CBL Replication Object with both targets (Sync Gateway & P2P)

20 views
Skip to first unread message

Victor Fernandez

unread,
Apr 14, 2015, 8:20:33 PM4/14/15
to mobile-c...@googlegroups.com
Hi
I have been working with a Objective-c application using naturally CouchbaseLite. This app have a continuos communication with a Sync Gateway running in a cloud server but one my requirements said that the app must have been capable to communicate with other devices even if internet is not available.
I have two CBLReplication objects, one for sync gateway and another to P2P. In some tests I was stopping one before starting the another one but that mechanism made very slow the replication so now I have the two of them active. All seems fine but I want another opinion about that practice.

Regards!!

Jens Alfke

unread,
Apr 14, 2015, 10:14:32 PM4/14/15
to mobile-c...@googlegroups.com

On Apr 14, 2015, at 5:20 PM, Victor Fernandez <vfern...@txmglobal.com> wrote:

I have two CBLReplication objects, one for sync gateway and another to P2P. In some tests I was stopping one before starting the another one but that mechanism made very slow the replication so now I have the two of them active. All seems fine but I want another opinion about that practice.

There’s no problem with having multiple replications to different hosts at the same time.

—Jens
Reply all
Reply to author
Forward
0 new messages