Apache and Tomcat Contact and difference

Source: Internet
Author: User

Both Apache and Tomcat are projects developed by the Apache open source organization to handle HTTP services, both of which are free and can be run as standalone Web servers. Apache is a Web server and Tomcat is a Java application server.

Apache: is implemented in the C language and is specifically designed to provide HTTP services.

Features: Simple, fast, stable performance, configurable (proxy)

1, mainly used for parsing static text, high concurrency performance, focusing on HTTP services;

2, support static page (HTML), does not support dynamic requests such as: CGI, servlet/jsp, PHP, ASP, etc.;

3, has a strong scalability, can be supported by the plug-in PHP, but also one-way Apache connection Tomcat to achieve connectivity;

4. Apache is the first Web server in the world to use.

Tomcat: Is a Java-developed JSP server (Servlet container) that conforms to the JavaScript Java EE specification and is an extension of Apache.

Features: Free Java application Server

1, mainly used for parsing jsp/servlet, focusing on the Servlet engine;

2, support static page, but efficiency without Apache high; Support servlet, JSP request;

3. Tomcat itself also has a built-in HTTP server to support static content and can be integrated with Apache through Tomcat's configuration management tool.

Apache + Tomcat:

Advantages After Integration:

If the Shenzhen is a static web page, it is processed by Apache and returns the result, and if it is a dynamic request, Apache forwards the parsing work to Tomcat processing, and the result is returned via Apache after Tomcat processing. This can achieve the division of labor, to achieve a long load scale, improve the performance of the system.

Summarize:

An analogy: Apache is a truck that can hold something like HTML. But no water (JSP), to fill the water must have a container (bucket), Tomcat is a bucket (like JSP, such as water), and this bucket can not be placed on the truck.

Transferred from: http://www.cnblogs.com/dyllove98/archive/2013/08/01/3230790.html

Apache and Tomcat Contact and difference (EXT)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.