tags:

views:

33

answers:

1

Which one of these two is most commonly used scenario? I want to use the same scenario in my learning process. thanks.

+4  A: 

Don't know about the rest of the industry, but where I work we have Apache HTTPD front-ending for Tomcat.

Any static content is directly provided by HTTPD for performance. Pain in the neck to separate every app out, but there is a noticeable payoff.

Also, HTTPD has some nice code for cookie handling, URL rewriting, clustering and so on.

Only if we determine that there's dynamic, database-bound data to show do we forward to Tomcat, which does an admirable job there.

Has been working well for us for almost a decade. Others too, I would wager.

Carl Smotricz
This is how we do it at my company too.
Bill the Lizard