I'm about to design a web application in Perl, to run on an Apache server (Linux), which will require a large, possibly hundred megabyte, in-memory data structure. I would like to initialize the data structure once from a database or file, then allow updates to affect the structure, as well as the persistent datastore, so that all future HTTP processes can access and update the most recent data.
I've tried using mod_perl for this type of persistent, in memory data, but any data structures that are initially shared get copied once per process and become unshared as soon as the data is changed by a process.
Do any other Monks have experience with using shared Perl data structures among multiple Perl (Apache) processes? What Perl, Apache, and/or Linux options are available handling this?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|