Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache vs tomcat

 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi dudes...
i have to designed a help desk web application on jsp and linux...i want to know which one, apache or tomcat will be a better choice...i am in a big confusion as to what will be the better choice...if any one can tell me how to differentiate b/w both of the servers...thanks
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache is a web server.
Apache Tomcat is a Servlet Container, that is also capable of acting as a web server.
Many folks will integrate the two, in order to take advantage of Apache's security, management and performance features as a web server, using it to serve static content, while using Apache Tomcat to handle the dynamic content requests.
Note that Servlets and JSPs cannot be deployed to the Apache web server. For that you need a Servlet container like Apache Tomcat or Resin.
Clearer?
http://apache.org
http://jakarta.apache.org/tomcat
 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will it be a better approach to use tomcat alone (not integrating with apache ) or will perform better if integrated with apache web server ??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the traffic is not going to be huge, and you don't need any of the Apache specialized modules such as PHP, Tomcat will do just fine and the whole thing will be simpler to get running and to manage by far.
What kind of simultaneous users count are you expecting to handle?
Bill
 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i am not sure about the number of users but its a complete help desk application that will be useful for the engineers of our client's company as well as for partners and customers...ok we can assume it as a large area...the thing is will there be any sort of performance problem in future if we use only tomcat...if you can list advantages of using both tomcat and apache ..it will be great..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Back when I was paying attention to the Tomcat mailing list, there were posts by people running pretty big sites - one example was a newspaper's entire site.
How much of the total content will be static - images, and plain pages - and how much will be generated on the fly by servlets and JSP?
Bill
 
Harish Vembu
Ranch Hand
Posts: 33
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Good explantion . Even though its a pretty older post. I would like to add further .

Always from a server architecture point of view its better to have an Apache Server handling all the HTTP requests and route it to Apache Tomcat server to handle dynamic pages like servlets and JSP's. I have worked with such integration on projects.
Both are from Apache Open source community and complement each other well.
For the curious and more inquisitive readers please refer an excellent article - http://www.it.uom.gr/teaching/applicationsIT_1/lectures/apache/sld016.htm


Thanks & Best Regards

Harish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic