> On Sep 30, 2014, at 12:04 AM, Marcus Roberts <[email protected]> wrote:
> 
> I love what Couchbase Lite is letting me do with my mobile apps, but when 
> developing at the smaller end of the scale as I am, I miss the ability to run 
> multiple websites and SQL databases on a single server.  Because of its 
> memory requirements, it appears that essentially it's one Couchbase bucket 
> per server.

I am far from being an expert on Couchbase Server, but I believe this is 
improved in version 3.0 (to be released imminently.) It has much better support 
for buckets whose contents are larger than their RAM allocation.

Also, you might consider CBGB <https://github.com/couchbaselabs/cbgb>, which is 
an experimental Couchbase-compatible server designed for multi-tenancy: it 
doesn't scale as well to high demand, but it scales extremely well to lots of 
buckets. It's not an official product, but it's stable enough that we used it 
for the (now retired) couchbasecloud hosted system.

> I've modified the Sync Gateway to give multi-tenancy control.  The idea is 
> that an account identifier is specified in the sync gateway configuration, 
> and then only documents with this account identifier in the document 
> meta-data can be read by the gateway, and all documents added through a 
> gateway are stamped with the account identifier.  

That sounds interesting, but I would imagine that it's difficult to do and 
requires a lot of changes to the code. Did you make sure to change the views, 
the change cache, etc.?

> Because the sync gateway is light on resource usage, I figure I can then run 
> multiple sync gateways on a server to give me the multi-tenancy I need for 
> serving my apps.

You don't have to run multiple gateways; each one can already support any 
number of independent databases, each with its own user accounts.

—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/63B8745F-833D-4B6B-BEEB-5236348AC789%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to