tfoertsch has asked for the wisdom of the Perl Monks concerning the following question:
I have to manage many parallel HTTP/HTTPS connections. My current implementation starts up a number of threads (300-500). Each thread handles one LWP::UserAgent. Then I use a queue to shift connection requests from the manager thread to the workers.
Since Perl's thread implementation is rather memory consuming this is not the optimal solution. 500 threads is the maximum on my 1GB machine.
I want to change the code to use non-blocking IO and select()ing ready file handles without loosing the comfort of LWP::UserAgent.
What is the best way? Is that feasible with LWP::UserAgent? Is there a better solution to handle many parallel connections? I need HTTP and HTTPS.
Thanks,
Torsten
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: managing many parallel HTTP requests
by merlyn (Sage) on Sep 09, 2005 at 13:30 UTC | |
|
Re: managing many parallel HTTP requests
by Corion (Patriarch) on Sep 09, 2005 at 11:13 UTC | |
by sgifford (Prior) on Sep 09, 2005 at 15:03 UTC |