DEV Community

loading...

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

Collapse
joelnet profile image
JavaScript Joel Author

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? 😁