NodeJS Worker Thread on EC2 Instance with single thread?
Muhammad Hasnain

Muhammad Hasnain @hasnaindev

Joined:
Jul 20, 2020

NodeJS Worker Thread on EC2 Instance with single thread?

Publish Date: May 21 '21
0 2

Hi!

I'm not a 100% familiar with NodeJS workers and clusters. I know that we can make use of multiple threads which is amazing to say the least.

I'm working on a small personal project that I've hosted on an free EC2 instance and I see that there is one CPU and one thread available. Is there then any benefit of using worker threads?

Also, why does the NodeJS Cluster documentation fork a cluster for a single CPU instead of a thread?

Thanks!

Comments 2 total

  • Chris
    ChrisMay 27, 2021

    what happened to the React post?

    • Muhammad Hasnain
      Muhammad HasnainMay 27, 2021

      Hello! I had to remove it because I didn't made my intent clear in that post. Readers thought I was criticizing React. Thanks for inquiring though!

Add comment