January 16, 2016

Node.js clustering maintaining sticky session

NodeJS is single threaded. It is event-driven and single-threaded with background workers. Scaling up a node application is possible by splitting a single process into multiple processes or workers by using cluster module. The cluster module allows you to create child processes (workers), which share all the server ports with the main Node process (master). A simple example {% highlight javascript %} var cluster = require(‘cluster’) var http = require(‘http’) var numCPUs = require(‘os’). ... Read more

Copyleft Jaipradeesh