Skip to content

How to use cluster module for easy scaling and load balancing

Notifications You must be signed in to change notification settings

manasmishra/cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cluster

How to use cluster module for easy scaling and load balancing This is a very small application which demonstrates how to use cluster module for easy loadbalancing and scaling of an appplication at very early stage as NOde.js is a single threaded enviornment. SO it is highly essential to use these concepts in the early stage of your application.

Here we have demonstrated the following points:

  1. There is a server file known as app.server which starts a server in some ports.
  2. To scale and cluster there is another file known as clusterdApp.js which actually forks the application instance and create multiple instances using cluster module of core nodejs.

About

How to use cluster module for easy scaling and load balancing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published