Why use Apache Web Server in front of Glassfish or Tomcat?

后端 未结 5 1340
遇见更好的自我
遇见更好的自我 2020-12-07 09:08

Is it good idea to use Apache Webserver in front of GF or Tomcat? Does it improve the performance/security?

Or there is not any reason to use Apache Web Server with

5条回答
  •  渐次进展
    2020-12-07 09:48

    One reason to place Apache in front of Tomcat would be for load balancing.
    Requests hit the Apache server in front and are distributed to backend Tomcat containers depending on load and availability.
    The clients know of only one IP (Apache) but the requests are distributed over multiple containers.
    So this is in the case you deploy a kind of distributed web application and you need it robust.
    If your question is about a simple web application then see dbyrne answer

提交回复
热议问题