DEV Community

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

Collapse
 
jorge_rockr profile image
Jorge Ramón

What about using Working Threads? Wouldn't be lighter and faster?

Collapse
 
joelnet profile image
JavaScript Joel

I think you are right. I am familiar with cluster because I use with with Express.js. And I think cluster might be the better use-case when using Express. But in this instance because there isn't much communication back and forth between processes, worker_threads would probably run faster. I think the difference would be small though.

Want to convert it and run some benchmarks? 😁