Consider this code;

use LWP::Simple; fork(); #2 fork(); #4 fork(); #8 fork(); #16 fork(); #32 fork(); #64 fork(); #128 for (1..1000) { $content = get("http://www.__YOURDOMAIN__.com"); print "Couldn't get it!" unless defined $content; }

The above code spawns 128 workers, which then download pages back to back as fast as they can from the specified domain.

Running on a $20 a month basic slice server, the old aXML system would run into troubles with 8 workers, and pretty much grind to a halt under the load of 16 workers.

Using PSGI/Plack, the new version using a very similar but optimised algorithm can handle the full 128 worker load without grinding to a halt. It does slow it down a bit, but what do you want from a $20 a month server?

Miyagawa is an absolute genius, and you would be doing yourself a huge favour to get to know his work inside and out. Sure he's "reinvented" a wheel, but WOW his new wheel is frak-frikken-tastic.

Warning: DO NOT USE THIS ON ANYONE ELSES SERVER... unless your absolutely ready to answer to a court of law for your actions.


In reply to Can your site handle this? by Logicus

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.