Mutant has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm currently working on an application that has an interface to create a configuration for various projects, and then a set of libraries to read that configuration for each project. Each project needs to be extremely reliable, and preferably as effecient as possible. The configuration consists of a set of complex data structures.
To achieve this, I'm currently using Storable to write the config to disk, then reading it from each project. This was chosen over a database driven approach for reliabilty reasons (some sort of replication is probably a little too complicated for this application).
I'm concerned, however, that this approach may be inefficient. The application is likely to generate high traffic, so caching the config is probably not a real option (it's running under mod_perl, so memory usage could well become an issue), although the config is unlikely to get updated very often.
Does anyone have any other solutions that will still be as reliable, but possibly more efficient?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuration Files
by dragonchild (Archbishop) on Nov 02, 2004 at 16:17 UTC | |
by Mutant (Priest) on Nov 02, 2004 at 16:30 UTC | |
by dragonchild (Archbishop) on Nov 02, 2004 at 16:33 UTC | |
by Mutant (Priest) on Nov 02, 2004 at 16:41 UTC | |
by Anonymous Monk on Nov 02, 2004 at 16:55 UTC | |
| |
|
Re: Configuration Files
by samtregar (Abbot) on Nov 02, 2004 at 17:37 UTC | |
by Mutant (Priest) on Nov 02, 2004 at 17:41 UTC | |
by samtregar (Abbot) on Nov 02, 2004 at 17:50 UTC | |
|
Re: Configuration Files
by Taulmarill (Deacon) on Nov 02, 2004 at 16:51 UTC | |
|
Re: Configuration Files
by zentara (Cardinal) on Nov 03, 2004 at 11:09 UTC | |
by Mutant (Priest) on Nov 05, 2004 at 15:09 UTC |