Node.js clustering made easy with PM2

Introduction As you would probably know, Node.js is a platform built on Chrome's JavaScript runtime, gracefully named V8. The V8 engine, and hence Node.js, runs in a single-threaded way, therefore, doesn't take advantage of multi-core systems capabilities. Node.js cluster module Luckily enough, Node.js offers the cluster module, which basically will spawn some workers which can all share any TCP connection. How does it work ? Cluster module will set up a master and then fork your server app as…

author

Alexandre Strzelewicz

Start monitoring your application in less than a minute

TAKE A TOUR