On Sep 25, 2015, at 2:39 AM, Brendan Duddridge 
<[email protected]<mailto:[email protected]>> wrote:

Is it possible to have multiple CBL Listeners running at the same time and 
multiple replicators running at the same time?

You only need one listener, because it serves all databases (of that 
CBLManager.) The listener is an HTTP server, and the databases are located at 
paths /db1, /db2, etc.

Do I need to use a different port number for each listener? Or do I just use a 
different serviceType for each database I want to sync?

If you want each database to have its own Bonjour service, you’d need to 
publish that yourself instead of letting the listener do it. It’s very little 
code, though; just create an NSNetService and publish it. Each one would have 
the same port number but would specify a different path.

Alternatively, you can use the one service that the listener provides, and use 
the TXT record to list the databases. The drawback is that the TXT record has 
limited size because it has to fit in one IP packet; it should stay below about 
1500 bytes.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/F7BEECE4-5FDF-4597-A282-75EC8802EDA2%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to