axios-parallel is a Node.js library (v1.1.2) that uses Axios and Worker Threads to send multiple HTTP requests concurrently, leveraging multi-core CPUs for parallelism. It is designed for server-side applications only, not browsers. The library simplifies parallel request handling by managing worker pools and request distribution. Compared to other parallel request libraries, it specifically integrates with Axios and provides TypeScript types. Releases are infrequent; last update was in 2021. Its key differentiator is the use of Worker Threads for true parallelism rather than just concurrent async I/O.
npm install axios-parallelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: sending two parallel GET requests with a concurrency limit of 10.
Use only in Node.js projects. Do not bundle for browser.
Pass an array of objects with axios config properties (method, url, etc.).
Handle each response individually; check for error property in each item.
Consider using alternative libraries like p-limit with Axios or p-map for similar functionality.
Set concurrency lower if you want to control total parallelism; it's multiplied by CPU count.
Use import axiosParallel from 'axios-parallel' (with esModuleInterop) or const axiosParallel = require('axios-parallel').default.Update Node.js to version >=8.10.0 and ensure not to bundle for browser.
Wrap single request in an array: axiosParallel([{ method: 'GET', url: '...' }], concurrency).