Apache jserv Protocol (AJP)

Source: Internet
Author: User
Tags apache tomcat

The Apache jserv Protocol (AJP) is a binary Protocol this can proxy inbound requests from a Web server through to an appli cation server

That sits behind the Web server.

It also supports some monitoring in that the Web server can ping the application server. Web implementors typically use AJP in a

load-balanced deployment where one or more front-end Web servers feeds requests into one or more application servers. Sessions

is redirected to the correct application server using a routing mechanism wherein each application server instance gets a Name (

called a route). In this scenario, the Web server functions as a reverse proxy for the application server.

AJP runs in Apache HTTP Server 1.x using the MOD_JK plugin and in Apache 2.x using the provided Proxy AJP, Mod_proxy and P Roxy

Balancer modules together. Implementations exist for the LIGHTTPD 1.5, Nginx, Grizzly 2.1, and the Internet information Server.

Both the Apache Tomcat servlet container as well as the Jetty servlets container support AJP.

AJP is a directional packet protocol. For performance reasons, use binary format to transfer readability text. The Web server is connected through a TCP connection and a servlet container. To reduce the cost of the process to generate a socket, the Web server and the servlet container try to maintain a persistent TCP connection and reuse a connection for multiple request/reply loops. Once the connection is assigned to a specific request, it is not allocated before the request processing loop ends. In other words, on the connection, the request is not plural. This is the connection at both ends of the coding made easy, although this leads to a lot of connections at a time. Once a Web server opens a connection to a servlet container, the connection is either idle or dispatched once a connection is assigned to a specific request, the basic request information sent on the connection is highly compressed. At this point, the servlet container is probably ready to start processing the request, and when it is processed, it can send back the following information to the Web server: (1) Send_headers, (2)Send_body_chunk, (3)Get_body_chunk, (4)Design of End_response AJP protocol http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html

Apache jserv Protocol (AJP)

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.