DEV Community

Discussion on: CLUSTER MULTI THREADED NODEJS -- Run threads in parallel to speed up long processes

Collapse
 
omkaragrawal profile image
OMKAR AGRAWAL

I had a similar requirement, for image manipulation, I used workerpool library. It made task pretty easy. Initially I did achieve it with worker_threads , but the issue I faced was that I couldn't actually keep a track of threads, and would quickly run out of cpus, but workerpool managed it automatically.

Collapse
 
joelnet profile image
JavaScript Joel

Ahh! this is a cool library. I haven't seen this one before. Definitely helps with the managing of threads. I'll check this out next time I need something multi-threaded. Thanks for sharing!