From: Benjamin Krajmalnik <kraj@servoyant.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
To: c k <shreeseva.learning@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Using Postgresql as application server
Date: Mon, 15 Aug 2011 10:46:26 -0600
Message-ID: <F4E6A2751A2823418A21D4A160B689888C9EF6@fletch.stackdump.local> (raw)
In-Reply-To: <CAOR=d=2ikydbWMs2h36W8MEYRoUoP2EDg+_ZyjsNA7=ju+B_Yw@mail.gmail.com>
References: <CAN2Y=uPjF14F5A9JXj02_vaPw4TMR0WGQid_w80xt4sC8o4qGg@mail.gmail.com>
<CAOR=d=2ikydbWMs2h36W8MEYRoUoP2EDg+_ZyjsNA7=ju+B_Yw@mail.gmail.com>
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
>
> On Sat, Aug 13, 2011 at 9:57 AM, c k <shreeseva.learning@gmail.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kraj@servoyant.com, scott.marlowe@gmail.com, shreeseva.learning@gmail.com, pgsql-general@postgresql.org
Subject: Re: Using Postgresql as application server
In-Reply-To: <F4E6A2751A2823418A21D4A160B689888C9EF6@fletch.stackdump.local>
References: <CAN2Y=uPjF14F5A9JXj02_vaPw4TMR0WGQid_w80xt4sC8o4qGg@mail.gmail.com> <CAOR=d=2ikydbWMs2h36W8MEYRoUoP2EDg+_ZyjsNA7=ju+B_Yw@mail.gmail.com> <F4E6A2751A2823418A21D4A160B689888C9EF6@fletch.stackdump.local>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox