Hi Jens,

Thanks for this info.

One thing to note is that each of my NSDocument instances has its own 
CBLManager I instantiate and keep in an ivar on my NSDocument subclass. But 
maybe I need to re-think how I do that. I could always have one CBLManager 
at the NSApp level and just create a separate database for each NSDocument 
instance.

Thanks!

Brendan

On Friday, September 25, 2015 at 10:01:49 AM UTC-6, Jens Alfke wrote:
>
>
> On Sep 25, 2015, at 2:39 AM, Brendan Duddridge <[email protected] 
> <javascript:>> 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/6351f3e2-fc91-4629-8d49-788124c40fda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to