Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 10218B5DC6E for ; Sun, 28 Aug 2011 14:10:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 94998-04 for ; Sun, 28 Aug 2011 17:09:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from acidenitrix.villemain.org (acidenitrix.villemain.org [91.121.90.165]) by mail.postgresql.org (Postfix) with ESMTP id 3CC3FB5DC4A for ; Sun, 28 Aug 2011 14:09:54 -0300 (ADT) Received: from [89.157.192.174] (helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Qxirk-0007o6-IZ; Sun, 28 Aug 2011 19:09:48 +0200 Received: by DimIMac.local (Postfix, from userid 501) id 2CBB7278A874; Sun, 28 Aug 2011 19:09:41 +0200 (CEST) From: Dimitri Fontaine To: Merlin Moncure Cc: Andrej , Dimitri Fontaine , c k , Chris Travers , Scott Marlowe , pgsql-general@postgresql.org, sad@bestmx.ru Subject: Re: Using Postgresql as application server Organization: 2ndQuadrant References: <4E46D0D7.3090700@officenet.no> <4E49B47E.8020401@ringerc.id.au> <87d3g3807x.fsf@hi-media-techno.com> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Sun, 28 Aug 2011 19:09:41 +0200 In-Reply-To: (Merlin Moncure's message of "Sun, 28 Aug 2011 10:13:52 -0500") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.303 tagged_above=-5 required=5 tests=BAYES_00=-1.9, SINGLE_HEADER_1K=0.597 X-Spam-Level: X-Archive-Number: 201108/916 X-Sequence-Number: 179198 [edited] Merlin Moncure writes: >>>> =C2=A0http://asmith.id.au/mod_libpq.html >> http://asmith.id.au/source/mod_libpq2.c > > node.js is even thinner. > > node.js is single threaded and 100% asynchronous which fits very nice > with libpq which is at heart a single threaded asynchronous library. Sure. Elnode shares this design, and yaws more seriously so. I wouldn't pick mod_libpq myself. http://nic.ferrier.me.uk/blog/2010_10/elnode http://yaws.hyber.org/ Just saying that the thin web server layer that directly hands the request to the database has been existing in PostgreSQL land for a long time already, no need to resort to other proprietary architectures here. Regards, --=20 Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support