Skip to content

Scalable and Fault-tolerant Application using Clustering and Load Balancing | Node.js, Cluster

Notifications You must be signed in to change notification settings

vardhan3236/Clustering-Load-Balancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalable and Fault-tolerant Application using Clustering and Load Balancing | Node.js, Cluster

Implemented a scalable and fault-tolerant Node.js application using clustering, load balancing, and consistent hashing. The application consists of a master process and three worker processes, each running on a separate server (3001, 3002, and 3003) Incoming client requests are load balanced using consistent hashing, which distributes the requests evenly across the servers To improve fault tolerance, three virtual nodes are created for each server and kept in a circular ring along with their hash values This approach ensures high availability, fault tolerance, and scalabilit

Request http://localhost:3001/hello request assigned to http://localhost:3000 through Consistent Hashing

image

Request http://localhost:3003/xyz request assigned to http://localhost:3000 through Consistent Hashing

image

Request http://localhost:3002/abc request assigned to http://localhost:3001 through Consistent Hashing

image

About

Scalable and Fault-tolerant Application using Clustering and Load Balancing | Node.js, Cluster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published