Hi guys I'm new to node js.
I have a script that I run several HTTP requests inside a loop. Let's say I have to make 1000 http requests. The thing is, I can only make one HTTP request per IP address, and I only have 10 IP addresses
So, after 10 concurrent requests, I have to wait for an answer to make another one.
How can I wait without blocking the script for one response from the http request to start another?
My problem is that if I execute some time waiting for a free IP address, my whole script is blocked and I don't get any response.
Thanks.
source share