The Way of the Gopher: Making the Switch from Node.js to Golang
I have read so many articles which incentivize switching from Node.js to Go and every single one of them (this one included) blabber on about the Node.js event loop becoming congested - This is completely misguided - It only shows that the engineer didn&#x27;t understand the problem.<p>A single Node.js instance runs its business logic in a single process. A single Go instance can run its business logic in multiple processes. Of course if you&#x27;re comparing a single instance of Go running on 4 CPU cores, it&#x27;s going to be faster than a single instance of Node.js running on 1 CPU core.<p>But the thing the author fails to mention is that there are a lot of Node.js modules which help you easily scale across multiple CPU cores. E.g. PM2 <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;pm2" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;pm2</a><p>Had the author of the article actually understood the real cause of the problem, he would have saved himself and his company a lot of time.<p>Nodejs is still outpacing Golang according to Google Trends and yet I have never seen a single article about switching from X language to Node.js. My guess is that the Go community probably wouldn&#x27;t exist if it wasn&#x27;t for this constant form of aggressive propaganda&#x2F;marketing. Node.js on the other hand doesn&#x27;t need any marketing&#x2F;propaganda; it just sells itself.<p>If you have a scalability problem with Node.js (or any language for that matter) and you can&#x27;t find a simple solution that doesn&#x27;t require rewriting your whole app, you&#x27;re probably not qualified to manage this project at scale - Because scaling across multiple CPU cores is kids&#x27; play compared to scaling across multiple machines. Heck, my grandma could scale this thing across multiple CPU cores.<p>Personally I think Node.js is great because it encourages you to think about these problems sooner rather than later.