I want to be able to send certain requests asynchronously to multiple Nessus servers using one nessus.rb client for each server. Currently I’m doing something like this:
clients = [
Nessus::Client.new('https://host-a:8834/', '…', '…'),
Nessus::Client.new('https://host-b:8834/', '…', '…'),
# …
]
clients.each do |client|
client.get '…'
# process response
end
I have experience that sometimes it takes quite a while for Nessus to respond, which will block all following requests.
Now my goal is to send these requests to all servers in asynchronously while being able to process each responses individually.