3 ms·
Don't forget Typhoeus. That's literally my Goto "nuke the API with 10,000 concurrent requests" library. It's also based on Curl so very stable. https://github
by Exuma 7y ago
Don't forget Typhoeus. That's literally my Goto "nuke the API with 10,000 concurrent requests" library.
It's also based on Curl so very stable.
https://github.com/typhoeus/typhoeus https://github.com/typhoeus/typhoeus
hydra = Typhoeus::Hydra.new
10.times do
request = Typhoeus::Request.new("www.example.com", followlocation: true)
request.on_complete do |response|
#do_something_with response
end
hydra.queue(request)
end
hydra.run
- hartator 7y agoTrue. Typhoeus is awesome as well.