The moose likes EJB and other Java EE Technologies and the fly likes Clustering and Load Balancing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Clustering and Load Balancing" Watch "Clustering and Load Balancing" New topic

Clustering and Load Balancing

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
can anybody explain me the difference between clustering and load balancing?
Thanks in advance

Vikas Sharma
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Cluster is a group of servers that appears as single unit to the client.
The advantages of a clusters are
1. Scalability : There are more servers to process requests. It is possible to add more servers without any client interruptions.
2.High avaliablity : This arises because of redundancy. If one of the servers in the cluster fails another one can take over.

Load balacing is a means of distributing client request among the servers in the cluster. We make of algorithms like DNS ROUND ROBIN, Hard ware load balancing for load balancing.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Clustering is about combining a group of servers into a single managed unit while load balancing is the act of delegating incoming load (e.g. HTTP requests) to one of the server instances in the cluster.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Clustering and Load Balancing
It's not a secret anymore!