Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 53F55B5DBE9 for ; Mon, 15 Aug 2011 13:58:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 84152-05; Mon, 15 Aug 2011 16:58:37 +0000 (UTC) X-Greylist: delayed 00:12:08.784716 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.illumen.com (unknown [64.207.29.137]) by mail.postgresql.org (Postfix) with ESMTP id 85C65B5DBD8; Mon, 15 Aug 2011 13:58:37 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Using Postgresql as application server X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 15 Aug 2011 10:46:26 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Using Postgresql as application server Thread-Index: AcxbY5k9sZeGv1pQSy6RgEn6f6pzQwABnfBg References: From: "Benjamin Krajmalnik" To: "Scott Marlowe" , "c k" Cc: , "pgsql-admin" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201108/133 X-Sequence-Number: 38120 Further to Scott's comment, we are running our application platform on nginx/php (using php-fpm). It scales very well and it is extremely fast. When running under Apache, we had to constantly restart the apache service because it could not handle the load (at 150 concurrent users hitting the app it would pretty much grind to a standstill). We moved to Nginx, have quadrupled the number of devices which are accessing our platform, and the number of php processes which are actually running is < 10. I had allocated a dynamic pool whereby we have 35 processes ready to accept requests at all times and which can dynamically scale up, but it does not come close to needing to use all of the existing processes. Everything is running under FreeBSD 8.1 amd64. As Scott mentioned, wrapping it into a real language is much better - the extent of what you will be able to do within the module will be severely limited vs a real language. > -----Original Message----- > From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin- > owner@postgresql.org] On Behalf Of Scott Marlowe > Sent: Monday, August 15, 2011 9:54 AM > To: c k > Cc: pgsql-general@postgresql.org; pgsql-admin > Subject: Re: [ADMIN] Using Postgresql as application server >=20 > On Sat, Aug 13, 2011 at 9:57 AM, c k > wrote: > > Dear Postgres users, > > from last few months I am reading and searching for can postgresql > used as > > application server? As postgresql supports many languages like > pl/perl, >=20 > Besides the previously mentioned nginx module there's apache's mod > libpq http://asmith.id.au/mod_libpq.html >=20 > But I'd stick to a language to wrap stuff in like php etc. >=20 > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin