Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F52A187F2 for ; Fri, 9 Oct 2015 14:36:43 +0000 (UTC) Received: (qmail 94293 invoked by uid 500); 9 Oct 2015 14:36:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94223 invoked by uid 500); 9 Oct 2015 14:36:30 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 94211 invoked by uid 99); 9 Oct 2015 14:36:29 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2015 14:36:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 56F2D180DDC for ; Fri, 9 Oct 2015 14:36:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.012 X-Spam-Level: X-Spam-Status: No, score=-0.012 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Dgsa2CuCb-06 for ; Fri, 9 Oct 2015 14:36:28 +0000 (UTC) Received: from st11p02im-asmtp001.me.com (st11p02im-asmtp001.me.com [17.172.220.113]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 995F420FE0 for ; Fri, 9 Oct 2015 14:36:28 +0000 (UTC) Received: from [192.168.1.102] (unknown [183.143.241.38]) by st11p02im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NVY00322J88I000@st11p02im-asmtp001.me.com> for user@couchdb.apache.org; Fri, 09 Oct 2015 14:36:22 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-10-09_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=3.32925069179702e-08 compositescore=0.727184565592041 phishscore=0 kscore.is_spamscore=0 rbsscore=0.727184565592041 recipient_to_sender_totalscore=0 spamscore=0 urlsuspectscore=0.727184565592041 adultscore=0 kscore.compositescore=0 circleOfTrustscore=0 suspectscore=1 recipient_domain_to_sender_totalscore=0 bulkscore=0 recipient_domain_to_sender_domain_totalscore=0 recipient_to_sender_domain_totalscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1412110000 definitions=main-1510090178 From: Ying Bian Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Subject: Create many couchdb instances on demand? Message-id: <4FA798CE-7B51-45FF-9D29-357434D6D2F1@me.com> Date: Fri, 09 Oct 2015 22:36:05 +0800 To: user@couchdb.apache.org MIME-version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) Hi all, I=E2=80=99m building a platform where users (platform users) can create = their own customize =E2=80=9Capp=E2=80=9Ds.=20 In my original architecture I was thinking to assign each =E2=80=9Capp=E2=80= =9D a dedicated database in a=20 shared couchdb instance. With that app database, the app owner can store = whatever=20 he needs to store, including the app=E2=80=99s own users (app users). = Note that "app users" are=20 different from "platform users=E2=80=9D: platform users are just app = owners who create apps, while app users are the consumers of a specific app, which should be isolated = from app to app. As in couchdb there is only one _users table per couchdb instance, I am = wondering whether it is a better architecture if I assign each app one couchdb instance = instead of a database? Then I can leverage the authentication & authorization logic provided by = couchdb. Otherwise I would have to have another authentication & authorization system and need to = keep it consistent with that in couchdb. What do you think of this? Is it a normal setup to have many couchdb = instances? I assume I=20 would need to consult with some technology like docker to do this. How = complex is it and=20 what kind of additional issues do I need to address? Your opinion is very much appreciated. -Ying=