This Example is for the NodeJs Cluster Module

This application has a structure that accommodates both utilizing all available CPU cores and single-core usage. It was developed to explain the usage logic of the Cluster Module for Node.js.

Installation

git clone https://github.com/exortek/nodejs-cluster-non-cluster-example.git
cd nodejs-cluster-module-example
npm install

Usage

npm run start:cluster # For Cluster Module
npm run start:non-cluster # For Non-Cluster Module

Load test

npm run load