In memory persistence - used as CGI

Robin Dunn robin at alldunn.com
Mon Oct 30 18:51:36 EST 2000


In article <8tkn1b09kg at news1.newsguy.com>,
  "Alex Martelli" <aleaxit at yahoo.com> wrote:
> <youngcho_sd at my-deja.com> wrote in message
> news:8tk9aq$p80$1 at nnrp1.deja.com...
> > I'm using Python as a CGI language (for use both
> > in MS IIS & Linux Apache).  Is there a mechanism
> > for in-memory persistence of data for use by
> > different HTTP requests to different Python CGI
> > pages?  Specifically, I'm looking for something
> > similar to an Application() variable in MS IIS 4.
>
> No, each CGI 'hit' is served by a completely separate
> process (I think this holds for both IIS and Apache),
> so there IS no memory address that is shared by
> different CGI-hits (including two successive hits
> on the same page from the same address).  You
> have to go to disk, and/or use cookies.
>

Or use something like FastCGI, but then you have to funnel all requests
through a single process which is fine for light or medium loads, but
can cause throughput issues at a high load.

--
Robin Dunn
Software Craftsman
robin at AllDunn.com
http://wxPython.org     Java give you jitters?
http://wxPROs.com        Relax with wxPython!


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list