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
In reply to managing many parallel HTTP requests by tfoertsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |