BerntB has asked for the wisdom of the Perl Monks concerning the following question:
Common data can easily be shared between httpd processes by using "PerlModule" in the Apache config (right?). Even if all processes needed to load data, it's just at process start anyway.
There is still the "usual" problem -- complex user state. I've seen "Sharing data structures in mod_perl" (and similar ones). (Update: To make it clearer, the problem is that the user state is potentially so complex that recreating it will be prohibitive for all web accesses.)
Q1: There is no "normal" way to make a mod_perl program to keep state for a given user, since requests will go to random processes, right?
I wrote my program with an interface "split" in the middle. I could use SOAP or some other interface, with the not-so-stateful UI running on the web server. (Or even let the users have a Tk client for the UI.)
Q2: What modules on CPAN are recommended for stateful servers for (some kind of) RPC calls? (From local machine's mod_perl or over the internet.)
Background (can safely be ignored):
I started out writing a data editor for an old favorite game. This ended up as potentially useful for other people's needs. (In hindsight, you could probably have mapped this quite well onto XML and let a Schema spec do a good part of the work. :-( )
I have no idea if five people or five thousands will have a use for this.
(-: I have a neat plan for the license. If I copyleft the program, all data used has to be released (since code is generated from data and linked in). This is my evil plan to lighten the documentation needs... "don't complain, look at all the example data!" For those not willing to follow the GPL, I'll grudgingly send a non-GPL version for a non-modest fee. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shared between mod_perl processes?
by perrin (Chancellor) on Aug 19, 2005 at 19:21 UTC | |
by BerntB (Deacon) on Aug 19, 2005 at 20:44 UTC | |
|
Re: Shared between mod_perl processes?
by johnnywang (Priest) on Aug 19, 2005 at 18:33 UTC | |
by perrin (Chancellor) on Aug 19, 2005 at 19:19 UTC | |
|
Re: Shared between mod_perl processes?
by themage (Friar) on Aug 19, 2005 at 20:06 UTC | |
by BerntB (Deacon) on Aug 20, 2005 at 10:43 UTC | |
|
Re: Shared between mod_perl processes?
by samizdat (Vicar) on Aug 19, 2005 at 17:06 UTC | |
by BerntB (Deacon) on Aug 19, 2005 at 17:23 UTC | |
by samizdat (Vicar) on Aug 19, 2005 at 18:30 UTC |