Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parallel HTTP requests library for JavaScript

I'd like to make number of http requests in parallel; with either one error response or a number of them. Having done that myself a few times (with just a loop & counter), I'd like to use one that is more robust, and will handle edge cases.

Do you know if there's a library / micro-framework out there that will do this? One, to which I can provide a number of URLs, a success callback method (for each), a single error callback; and possibly other options. This library would follow 301s, call the err-cb if any or all requests time-out or fail.

like image 529
Yuriy Nemtsov Avatar asked Dec 30 '25 20:12

Yuriy Nemtsov


1 Answers

Use one of the flow-control libraries:

  • Step
  • Seq
  • Futures
  • TameJS
  • Async
like image 80
Yuriy Nemtsov Avatar answered Jan 02 '26 10:01

Yuriy Nemtsov