Afficher un message
Vieux 09/10/2006, 14h48   #3
Volker Hetzer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: persistent database connections?

Ottavio Caruso schrieb:
> Volker Hetzer wrote:
>
>> How far can one fit in apache into the middle of a three tier architecture
>> where html or web browsers don't come into the picture at all?

>
> Apache is an application that sits on top of http (Apache is also
> called httpd).

Yes, I do understand that.

> If you want a database connection but not http, you need
> a different client/server solution.

I want a database connection through http, clients will
probably use XML-RPC in their communication with apache.
The job of apache is to provide platform independence and
SSL.
But for the application to work I need persistent connections
to the database, so that if three clients open sessions with
the apache (i.e, there are three different values), I
want three database connections to be created, with each
one assigned to one session (based on the value).
This database connection should stay until the client has
logged off or the session has timed out.

So far, the only options I have seen apache offering are
- one connection per request,
- a pool of connections that get reused in a random manner.

Is there a third option like
- one connection per client session as identified by a
session ?

Lots of Greetings!
Volker
--
For email replies, please substitute the obvious.
  Réponse avec citation
 
Page generated in 0,05783 seconds with 9 queries