A mod_perl based multi-player strategy game in which the client sends and receives information about his location and status every 2 seconds. The sent information is light (around 20-100 characters, not including HTTP headers) and the received information varies based on the conditions, but usually ranges from 40-400 characters.
If you're counting bytes you'll need to account for TCP/IP overhead in addition to HTTP overhead. My memory (which is probably wrong) is that TCP/IP overhead is in the neighborhood for 46 bytes per packet. Since you're dealing with small data, you're probably not splitting packets.
Since the overhead of setting up (and tearing down) a TCP connection is 7 packages (3 to open, 4 to close), it's to your advantage to keep the connection alive. (See Connection: Keep-Alive and Perl for details.)
In a somewhat similar situation a while back, on a machine 1/2 as powerful, but doing a lot of work on the back end per request, we were able to handle 150 simultaneous connections, though they were polling every 5 seconds.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.