Welcome
Login / Register

Node.js Cluster - Boost Node App Performance & Stability with Clustering

Thanks! Share it with your friends!

URL

You disliked this video. Thanks for the feedback!

Sorry, only registred users can create playlists.
URL


Added by Admin in Learning
207 Views

Description

Get the code here! https://gist.github.com/learncodeacademy/954568155105f4ff3599

Many Node.js developers don't know that Node by default only uses one core of your processor. It's intentional and it's a great move. It just means that you have to run cluster to get the full capacity out of your server.

When cluster.js runs, it spins up one copy (fork) of your application for each core on your machine, and balances the traffic between them. It also listens to each fork, so if one dies, it spins up a new one in it's place.

Clustering is a great way to add stability to your application and drastically increase it's load capacity.

Post your comment

Comments

Be the first to comment
RSS