---
title: "Comment by s710 on \"10 things you shouldn't do while running Node.js in production\" | Hashnode"
description: "Also some thoughts from here: Node.js is single threaded in nature This is not entirely true, since the underlying v8 engine of course uses multiple threads. By"
url: "https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/5915cc72f32035441997ace1"
---

[Discussion](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a)

Comment [10 things you shouldn't do while running Node.js in production](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a)

[s710](https://hashnode.com/@s710)

[May 12, 2017](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/5915cc72f32035441997ace1)

Also some thoughts from here:

> Node.js is single threaded in nature

This is not entirely true, since the underlying v8 engine _of course_ uses multiple threads. By default, these are 4, but can be increased. Threading is used for any non-blocking I/O (that is, file I/O, network I/O). And as you already suggested, not to do heavy lifting (=CPU intensive work), it means that node.js/v8 is already very well prepared for parallel processing and utilizing multiple CPUs/cores. Therefore, I would disagree that the clustering module is a _must_.

> Not using Node.js Cluster

You already suggested nginx as reverse proxy, it should be mentioned that nginx can also be very well used as a load balancer for node.js applications. For a comparison see this link: [keithcirkel.co.uk/load-balancing-node-js](https://www.keithcirkel.co.uk/load-balancing-node-js/)

Especially its capability to dispatch requests to node.js processes according to their current number of pending requests can probably be superior to the common round-robin approach.

[sai krishna](https://hashnode.com/@sai451)

[Jun 1, 2019](https://hashnode.com/posts/10-things-you-shouldnt-do-while-running-nodejs-in-production/57bee46e93309a25047c619a/comment/5915cc72f32035441997ace1#reply-5cf2b27fe46ca4a542122f1f)

Does anyone faced problems with CPU spikes to 100% and when I reload it drops and gradually increases again. I am using pm2 cluster mode
