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.
git clone https://github.com/exortek/nodejs-cluster-non-cluster-example.git
cd nodejs-cluster-module-example
npm install
npm run start:cluster # For Cluster Module
npm run start:non-cluster # For Non-Cluster Module
npm run load