Re: Child Interprocess Data

2001-07-25 Thread Nouguier Olivier

Kevin Schroeder wrote:

> Hi,I want to create a program for mod_perl that shares information
> in between all the child processes so they all have current
> information.  The data will be stored in a MySQL database, but rather
> than query the DB each time which, due to the kind of server load,
> would work but would be somewhat needless, I would like to have a
> certain amount of data stored within the server and accessable to all
> the Apache processes. Could someone point me in the right
> direction to start? Kevin

Hi,
IPC::ShareLite is your friend

--
My mother always used to tell me, "The early bird gets the worm."
The message seemed pretty clear to me: If you sleep late, you're
a lot less likely to be killed by a bird.
-- Elliott Downing






Re: Child Interprocess Data

2001-07-23 Thread Perrin Harkins

> Kevin Schroeder wrote:
> I want to create a program for mod_perl that shares information in
> between all the child processes so they all have current information.

There are many CPAN modules that cover this.  Check the guide at
http://perl.apache.org/guide/.  One option that's easy to get started
with is the MLDBM::Sync module, which uses dbm files for sharing.

- Perrin



Child Interprocess Data

2001-07-23 Thread Kevin Schroeder



Hi,
    I want to create a program for 
mod_perl that shares information in between all the child processes so they all 
have current information.  The data will be stored in a MySQL database, but 
rather than query the DB each time which, due to the kind of server load, would 
work but would be somewhat needless, I would like to have a certain amount of 
data stored within the server and accessable to all the Apache 
processes.
 
    Could someone point me in the 
right direction to start?
 
Kevin