Whiz Kid has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I sought an answer in the archives, but did not find anything quite right. Could mean my searching stinks. :)
I'm working through a web/backend code set that has been dormant for a few years, mainly migrating from mod_perl 1 to 2, but also looking at some other cleanup.
The code has a global configuration flat file containing config data which changes rarely, but must be changeable without code changes. The configuration is shared amongst a number of CGI scripts as well as back-end daemon processes.
I'm interested in instantiating a data structure in system memory to avoid performance hits reading disk in the CGI. The data structure would need to outlast any given session, which eliminates a number of solutions.
The existing implementation uses IPC::ShareLite and a shared memory segment to accomplish persisting the data.
Is there a simpler or more elegant solution?
Thanks...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Caching File-based Config across many sessions
by sgifford (Prior) on May 01, 2007 at 03:03 UTC | |
|
Re: Caching File-based Config across many sessions
by TOD (Friar) on Apr 30, 2007 at 23:58 UTC | |
by mpeters (Chaplain) on May 01, 2007 at 01:13 UTC |