pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: David Johnston <polobo@yahoo.com>
Cc: c k <shreeseva.learning@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: [GENERAL] Using Postgresql as application server
Date: Sun, 14 Aug 2011 10:06:32 +1200
Message-ID: <4E46F568.5090403@archidevsys.co.nz> (raw)
In-Reply-To: <4405BEF7-6E71-4FD0-B70F-4E651E2A2381@yahoo.com>
References: <CAN2Y=uPjF14F5A9JXj02_vaPw4TMR0WGQid_w80xt4sC8o4qGg@mail.gmail.com>
	<4405BEF7-6E71-4FD0-B70F-4E651E2A2381@yahoo.com>

On 14/08/11 05:12, David Johnston wrote:
>
> On Aug 13, 2011, at 11:57, 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, pl/python etc, supports dblink like functions to connect to other postgresql servers and now features are in development to use external data. Postgresql works well on many operating systems and has a stable and good quality code. As many users are using plpython or plperl to work on many types of data and to implement logic that can be useful in web application management.
>> So i am thinking if I can use postgresql as web application server.
>> Few points that supports this opinion:
>> 1. multiple languages support for stored procs and triggers.
>> 2. can connect to other postgresql servers or databases
>> 3. it is easy to manage stored procs or triggers than managing web application in other servers.
>> 4. data and logic/processing can be separated. One postgresql can be used as application server and another as database.
>> 5. stable, mature and open codebase.
>>
>> I request to users and developers give your suggestions and opinions.
>> Waiting for your replies.
>>
>> Thanks and regards,
>>
>> Chaitanya Kulkarni
> Code yourself a nice "hello world" application that can accessed by a web browser and outputs in HTML using only PostgreSQL.  IF you can actually do that simple task you will then be in a better position to decide if such an architecture is worth expanding upon.
>
> The better question to ask is why wouldn't you want to use something like Tomcat or Apache+Programming Language?
>
> David J.
>
>
>
Hi,

I see from other posts that you are using Python (A lovely language, but 
one that does not scale well for my own purposes -- unfortunately) so 
this is most likely not relevant to your current situation.

However, for those people who would consider Java, then consider using 
JBoss 7, it is very fast and will support very sophisticated web front 
ends while allowing very powerful logic written in Java, and can easily 
be configured to use PostgreSQL.

The combination of JBoss http://www.jboss.org/overview.html and JEE 
(Java Enterprise Edition), is well suited to large projects that can 
benefit from multi-core processors and massive amounts of RAM. My own 
humble development machine has a mere 4 cores and 8GB, but production 
machines can easily use a terrabyte of memory and many more cores. 
Eclipse is an IDE that is well suited for developing applications in 
Java, and can be configured to develop applications for JBoss.


Cheers,
Gavin

I have written a script to install JBoss 7 (a lot easier than for JBoss 
4 and earlier!) and convert it to use PostgreSQL 9.1 beta3. This I am 
using to revise my JEE knowledge and get to grips with version 6 of JEE.

view thread (88+ messages)  latest in thread

Message-ID: <4E46F568.5090403@archidevsys.co.nz>
Permalink:  ../4E46F568.5090403@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4E46F568.5090403@archidevsys.co.nz

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: GavinFlower@archidevsys.co.nz, polobo@yahoo.com, shreeseva.learning@gmail.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Using Postgresql as application server
  In-Reply-To: <4E46F568.5090403@archidevsys.co.nz>

* 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