Basic example to demonstrate the use of cluster to scale Node.JS Application
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
server.js

README.md

nodejs-cluster

Basic example to demonstrate the use of cluster to scale Node.JS Application

Run Quick demo on your local machine

  1. Clone repo
git clone https://github.com/sysleaf/nodejs-tcp-client-server.git
cd nodejs-tcp-client-server
  1. Start server
node server.js
  1. Then open http://localhost:3000 and keep refreshing See how response is coming from different worker/child process on each refresh.