From dev-return-48453-archive-asf-public=cust-asf.ponee.io@couchdb.apache.org Tue Mar 19 02:26:11 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id CE3BE180651 for ; Tue, 19 Mar 2019 03:26:10 +0100 (CET) Received: (qmail 51599 invoked by uid 500); 19 Mar 2019 02:26:09 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 51563 invoked by uid 99); 19 Mar 2019 02:26:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2019 02:26:08 +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 644AA180CD6 for ; Tue, 19 Mar 2019 02:26:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.203 X-Spam-Level: X-Spam-Status: No, score=-0.203 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=apple.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 0gaPdT2omeyQ for ; Tue, 19 Mar 2019 02:26:06 +0000 (UTC) Received: from nwk-aaemail-lapp02.apple.com (nwk-aaemail-lapp02.apple.com [17.151.62.67]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4475060D27 for ; Tue, 19 Mar 2019 02:26:06 +0000 (UTC) Received: from pps.filterd (nwk-aaemail-lapp02.apple.com [127.0.0.1]) by nwk-aaemail-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x2J2M59H018222 for ; Mon, 18 Mar 2019 19:25:59 -0700 Received: from mr2-mtap-s03.rno.apple.com (mr2-mtap-s03.rno.apple.com [17.179.226.135]) by nwk-aaemail-lapp02.apple.com with ESMTP id 2rakdu4pm3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 18 Mar 2019 19:25:59 -0700 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by mr2-mtap-s03.rno.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPS id <0POL0059ADFBW230@mr2-mtap-s03.rno.apple.com> for dev@couchdb.apache.org; Mon, 18 Mar 2019 19:25:59 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz10.apple.com by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0POL00500D95MI00@nwk-mmpp-sz10.apple.com> for dev@couchdb.apache.org; Mon, 18 Mar 2019 19:25:59 -0700 (PDT) X-Va-A: X-Va-T-CD: 2436ba860ccf777c907746b5e58498b5 X-Va-E-CD: 3b5f5e79ef3b9e6ae46b960055aaa8fc X-Va-R-CD: 01fbc495cf44c45ea741a093fbf8a0b3 X-Va-CD: 0 X-Va-ID: e1c180b9-f5e3-4d64-9688-5cb4b1440965 X-V-A: X-V-T-CD: e2b6993758f47e9ded08085d428c0470 X-V-E-CD: 3b5f5e79ef3b9e6ae46b960055aaa8fc X-V-R-CD: 01fbc495cf44c45ea741a093fbf8a0b3 X-V-CD: 0 X-V-ID: a57fa1e8-a326-4f34-80fb-9fcf446b1c63 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-19_01:,, signatures=0 Received: from [17.114.162.243] (unknown [17.114.162.243]) by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPSA id <0POL00LFMDFAIE60@nwk-mmpp-sz10.apple.com> for dev@couchdb.apache.org; Mon, 18 Mar 2019 19:25:59 -0700 (PDT) Sender: alexmiller@apple.com From: Alex Miller Content-transfer-encoding: quoted-printable Subject: Re: FoundationDB & Multi tenancy model Date: Mon, 18 Mar 2019 19:25:56 -0700 References: To: dev@couchdb.apache.org In-reply-to: Message-id: <9016E884-A3D9-4937-888D-5D6D9FF885A0@apple.com> X-Mailer: Apple Mail (2.3445.101.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-19_01:,, signatures=0 > On Mar 18, 2019, at 10:32 AM, Steven Le Roux = wrote: >=20 > Also, did anyone considered reaching > the FDB guys to try to align CouchDB document representation to the > Document Layer ( = https://foundationdb.github.io/fdb-document-layer/data-modeling.html ). > This would make CouchDB to be also MongoDB API compatible. In reading through the proposals, I=E2=80=99ve been left with the = impression that although the FDB document layer and proposed CouchDB = layer would potentially overlap in how to persist a JSON object to FDB, = the higher level goals are sufficiently different to make this level of = sharing seem difficult to achieve. The document layer would know = nothing of revisions or change feeds, and the CouchDB layer would know = nothing of indexes or extensions like GridFS. Overall, I=E2=80=99ve seen a lot of excitement in being able to have = data that=E2=80=99s useable via multiple different APIs, and I agree it = would be cool, but from the implementation side I haven=E2=80=99t yet = managed to sketch out how to make it work in a modular, extendable way. > I'm curious on how you're considering to manage multi tenancy while > ensuring a good scalability and avoiding hotspotting. I=E2=80=99ll issue a similar note of caution that FoundationDB isn=E2=80=99= t a natively multi-tenant database either. The transaction rate = limiting done in FoundationDB applies globally, so a small set of = clients focusing a read hotspot on a single key, or trying to bulk load = data in faster than FoundationDB can keep up will impact the latencies = seen by other clients connected to the same database.=