Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Anybody has any strong reason why HeartBeat, HAProxy, NGINX or any other reverse proxies needed for apache tomcat web application when we can have HA and LB with Tomcat supported Clustering with Apache mod_jk setup?. Anybody please...?

Any other issues with these?

share|improve this question

closed as not constructive by Shane Madden, womble, Janne Pikkarainen, sam, MDMarra Nov 14 '11 at 2:40

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 3

up vote 1 down vote accepted

Just because a package is capable of something doesn't make it the best choice for every scenario. Just because Apache can serve files and maintain HA doesn't mean that you can't do better. A reverse proxy might use less memory, less CPU, decrease latency, or all of the above.

share|improve this answer

Because different people like to implement things differently. After all, mod_jk is a reverse proxy itself.

share|improve this answer
    
Yeah, that's why I always confusing if there are many drawbacks only with apache & tomcat. –  user53864 Aug 4 '11 at 5:48
    
And I'm unable to decide myself if it could be good for production. –  user53864 Aug 4 '11 at 5:49
    
Don't try to decide beforehand; just create a test environment and see it for yourself. –  Fran Garcia Aug 5 '11 at 18:18

A benefit of NGNIX as a reverse proxy is that it can support tens of thousands of HTTP connections in keepalive state, thus reducing end-user latency for subsequent requests. Apache is not nearly as good at this. This is especially important when using SSL, as it introduces additional round trips for connection setup.

share|improve this answer
    
Yes, I heard few issues with SSL. Does nginx support tomcat SSL?. I am thinking whether all the feature supported by apache are also found in nginx. If so if I've to switch from apache, I should accustom to nginx first and I don't know how long does it take. –  user53864 Aug 4 '11 at 5:53
    
There is no such thing as "tomcat SSL". –  womble Aug 4 '11 at 6:46
    
I mean to say I can configure ssl from tomcat side instead apache –  user53864 Aug 4 '11 at 6:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.