I have this ruby class :
require "celluloid"
require "curb"
class Sender
include Celluloid
def send_url
Curl.get(URL)
end
end
And another worker which is supposed to to use this class, something like
pool = Sender.pool(:size => 50)
(1..10000).each do
pool.send_url
end
Now since I'm new here, I want the worker to send 50 requests together instead of waiting for each request till it's done, am I doing it the right way like this or do I need to change pool.send_url to pool.send_url! ? would the pool this way delegate the request to 50 workers directly or it will wait for each to finish before doing that?
Thanks in advance
Eqbal