I'm a bit confused on what you really want.
You are mentioning a lot of concurrent accesses to the remote site, so maybe you do not want to check its availability but its performance.
If that is the case, I'd not recommend Mechanize for that task, there are tools that you can use, like Apache Benchmark or JMeter.
To check for the availability of the server you can do less frequent requests, and for this it does not really matter if you use Mechanize or just LWP.
| [reply] |
Hi,
Thank you for replying.
I knew of Apache Benchmark, but I want to learn how to make something similar
myself.That is why I've asked.
How would you design such a tool ?
| [reply] |
Take a look at HTTPD::Bench::ApacheBench.
I've never used it so I can't say if it really is up to the task.
Alternativelly, you can make the requests yourself using LWP. Since you only care to check is the response is 200 OK, there is no overhead in parsing the response.
| [reply] |
availability is boolean , available or not available | [reply] |