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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |