Any good Node.js parallelization libraries?
Or do I have to use something along the lines of Web Workers or NodeJS Worker Threads? I would prefer it if I had an API similar to Python’s concurrent.futures. What I really want is apply a function to an array in parallel (i.e. some parallel version of .map)
5 comments
[ 3.4 ms ] story [ 20.0 ms ] threadI haven't had cause to use it yet, but I very much trust/respect the team behind: https://www.npmjs.com/package/piscina . It's so popular it has well maintained forks, such as tinypool, https://www.npmjs.com/package/tinypool .
Also seeing good npm popularity metrics around: https://www.npmjs.com/package/synckit
While it may not provide parallel map out of the box it will help to implement it a little bit easier than using nodes api.