Also, any idea on how many people could be on a single dedicated server this way at one time before the server gets maxed out?

Completely unknown with the information you've given us. For example, the number of people who could use a single server if it was a P200 with 64Mb is completely different to the number of ppl who would saturate a 6 CPU, 2Gb E450. (you mention you use unix.)

One tip, mod_perl keeps database connections open. So the pain and suffering yours scripts go thru' to open a db-handle is done only once.

In this situation where you data must not be volatile (ie you should be able to recover after a machine failure) I think a database would be your best answer IMO. If tuned correctly, most of the data would be in memory, and the db engine will flush it when it needs to.

Instead of fragmenting your application into 100's of scripts check out CGI::Application.


In reply to Re: speeding up multi-player game with shared memory or MySQL by Ryszard
in thread speeding up multi-player game with shared memory or MySQL by dev2000

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.