Vaibhav A. Karkhanis wrote:Just to ensure I got the explaination in the previous post correct....If I have a web-tier in front of the application-tier, I can use it as the Load Balancer, incase I don't cluster the app-servers...am I correct?
Yes, but in that case the web-tier MUST use Sticky Load Balancing.
The ONLY problem this will have is that if one of the App Server goes down, your users cannot fail over to other servers without losing their sessions.
Also, if your sessions are maintained in a common database, then this problem too does not occur.
If you have multiple App Servers, then you do have to have some kind of a load balancer in front anyway - to distribute the requests across App Servers. This Load Balancer can even be a hardware load balancer (very costly).
A typical example:
Apache as Load Balancer. Multiple App Servers (like
Tomcat) behind it. Apache and Tomcat connected using JK2 module.
Clustering App Servers is not recommended in scenarios where there will be a very huge number of App Servers, as this could generate lot of traffic between them.