> On Aug 13, 2014, at 3:06 AM, [email protected] wrote: > > I want to share each couch db with a mobile user via Sync Gateway. Each user > will only be connected to one db, and each db can only be accessed by one > user. This means I will have 1k+ Sync Gateway processes running to facilitate > 1k users. This does not seem like a scalable solution.
It's not scaleable. Couchbase Server does not scale to large numbers of buckets, mostly because each bucket is pre-allocated a fairly large amount of RAM. It's not recommended to have more than a dozen or two buckets in a cluster. > Otherwise, are there any alternatives? I'd like to keep my current DB > architecture in place if possible. You should try to design your system to use a single database shared by all users. The Sync Gateway was expressly designed to support this, so it has a lot more access control than CouchDB does. Back in 2012 we tried to build a system (SyncPoint) based on CouchDB that used a one-db-per-user model, and realized it wasn't going to work well. It was kludgy to configure and not scaleable, especially if users shared documents. —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/459E1CA8-1F5D-4D62-B87A-DE974168EB8A%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
