Re: Using Postgresql as application server

From: "Benjamin Krajmalnik" <kraj(at)servoyant(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>, "c k" <shreeseva(dot)learning(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>, "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Using Postgresql as application server
Date: 2011-08-15 16:46:26
Message-ID: F4E6A2751A2823418A21D4A160B689888C9EF6@fletch.stackdump.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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(at)postgresql(dot)org [mailto:pgsql-admin-
> owner(at)postgresql(dot)org] On Behalf Of Scott Marlowe
> Sent: Monday, August 15, 2011 9:54 AM
> To: c k
> Cc: pgsql-general(at)postgresql(dot)org; pgsql-admin
> Subject: Re: [ADMIN] Using Postgresql as application server
>
> On Sat, Aug 13, 2011 at 9:57 AM, c k <shreeseva(dot)learning(at)gmail(dot)com>
> 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,
>
> Besides the previously mentioned nginx module there's apache's mod
> libpq http://asmith.id.au/mod_libpq.html
>
> But I'd stick to a language to wrap stuff in like php etc.
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message sad@bestmx.ru 2011-08-15 17:33:29 Re: Using Postgresql as application server
Previous Message Leif Biberg Kristensen 2011-08-15 16:24:30 Re: Using Postgresql as application server

Browse pgsql-general by date

  From Date Subject
Next Message sad@bestmx.ru 2011-08-15 17:33:29 Re: Using Postgresql as application server
Previous Message Leif Biberg Kristensen 2011-08-15 16:24:30 Re: Using Postgresql as application server