Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
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? 😁
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about using Working Threads? Wouldn't be lighter and faster?
I think you are right. I am familiar with
cluster
because I use with with Express.js. And I thinkcluster
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? 😁