

Introduction
A single instance of Node.js runs in a single thread. This does not allow to take advantage of multi-core systems automatically. However, by leveraging ‘cluster module’ one can take advantage of multiple CPU cores. Clustering improves your app’s performance and lets you achieve zero downtime (hot) deployments easily. Also keep in mind that number of workers that can be created is not limited by the number of CPU cores of the machine. Clustering is a must-have for any Node.js production app and there is no reason not to use it.
All Tags:
abortcontroller
1
abortsignal
1
access
1
aggregation pipeline
1
async
3
aws
1
best practices
1
capped
1
clustering
1
cross-platform
1
data processing
1
database
13
destructuring
1
development
1
es6
2
eslint
1
eventloop
1
expressjs
6
filesystem
1
finally
1
frontend
1
grid
1
hooks
1
image grid
1
indexing
2
ipc
1
javascript
24
javascript object
1
joi
1
js object
2
loops
1
macos
1
material-ui
1
memory
1
mongodb
19
mongodb compass
1
mongoosejs
8
monitoring
1
nested
1
nodejs
24
nvm
1
object
2
performance
3
pino
2
plugins
2
prettier
1
reactjs
2
schema
5
schema design
1
security
2
streams
2
subdocument
1
swagger
1
tech
1
template literals
1
time to live
1
timers
1
tools
1
transactions
1
ttl index
1
url
1
vscode
1
web development
1