Hello,

I have to write a daemon that will fetch URLs from different servers (each document will be no more than 100kb) in parallel, at least 20 requests running concurently (the more, the better).

I have to choose what modules to use. I've heard LWP is slow and too CPU-intensive task for crawlers (at least this is told in WWW::Curl::Multi suggesting to use itself for crawlers), while WWW::Curl::Multi is broken (I've reported bugs in RT).

What options do I have besides LWP? I'm considering to use threads and WWW:Curl::Easy to run downloader inside each thread.

This has to run on Linux. Ideally it should run on Virtual Private Server (hoster permits running spiders there), if possible (so don't answer "use LWP and buy server with 8-core Intel CPU).

Thanks in advance for your answers!


In reply to what modules you recommend for downloading hundreds of URLs per second in parallel? by Anonymous Monk

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.