Basic example to demonstrate the use of cluster to scale Node.JS Application
Run Quick demo on your local machine
- Clone repo
git clone https://github.com/sysleaf/nodejs-tcp-client-server.git cd nodejs-tcp-client-server
- Start server
- Then open http://localhost:3000 and keep refreshing See how response is coming from different worker/child process on each refresh.