Thursday, 1 August 2019

How to limit the rate of HTTP requests?

I am using async.eachLimit to hit 30 parallel requests on the server using request module. The problem is server CPU usage is reaching at 60% and I want to keep it low. So I need to limit my http requests so that it hits only limited number of requests on the server?I found a similar problem on stackoverflow and the accepted answer is using a timeout. Is there any other better way to do this?

Submitted August 01, 2019 at 07:56AM by GhostFoxGod

No comments:

Post a Comment