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'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.  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.   I 
know this can be done with channels, but I'm also looking to extend this 
multi tenancy to the sync meta-data such as users, roles, etc.

This is working for me at the moment, but before I carry on and make users, 
roles etc work in this environment I thought I would ask - is this a really 
stupid idea?  Are there better ways to do this?



-- 
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/0f847330-7b68-4569-8ef5-3173672ff3c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to