ajp_百度百科 https://baike.baidu.com/item/ajp/1187933

AJP(Apache JServ Protocol)是定向包协议。因为性能原因,使用二进制格式来传输可读性文本。WEB服务器通过 TCP连接 和 SERVLET容器连接。
 
外文名
Apache JServ Protocol
简    称
ajp
实    质
定向包协议
作    用
使用二进制格式来传输可读性文本
AJP是定向包协议。因为性能原因,使用二进制格式来传输可读性文本。WEB服务器通过TCP连接和SERVLET容器连接。为了减少进程生成socket的花费,WEB服务器和SERVLET容器之间尝试保持持久性的TCP连接,对多个请求/回复循环重用一个连接。一旦连接分配给一个特定的请求,在请求处理循环结束之前不会再分配。换句话说,在连接上,请求不是多元的。这个使连接两端的编码变得容易,虽然这导致在一时刻会有很多连接。
一旦WEB服务器打开了一个到SERVLET容器的连接,连接处于下面的状态:
◆ 空闲
这个连接上没有处理的请求。
◆ 已分派
连接正在处理特定的请求。
一旦一个连接被分配给一个特定的请求,在连接上发送的基本请求信息是高度压缩的。在这点,SERVLET容器大概准备开始处理请求,当它处理的时候,它能发回下面的信息给WEB服务器
◆ SEND_HEADERS
发送一组头到浏览器。
◆ SEND_BODY_CHUNK
发送一块主体数据到浏览器。
◆ GET_BODY_CHUNK
从请求获得下一个数据如果还没有全部传输完,如果请求内容的包长度非常大或者长度不确定,这是非常必要的。例如上载文件。注意这和HTTP的块传输没有关联。
◆ END_RESPONSE
结束请求处理循环。
 
 
 

The Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application 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 feed requests into one or more application servers. Sessions are 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 areverse proxy for the application server. Lastly, AJP supports request attributes which, when populated with environment-specific settings in the reverse proxy, provides for secure communication between the reverse proxy and application server.[1][2]

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 proxy balancer modules together. Implementations exist for the not-yet-released lighttpd version 1.5,[3]nginx,[4] Grizzly 2.1,[5] and the Internet Information Server.[6]

The Apache Tomcat and JBoss AS/WildFly servlet containers support AJP.

 

最新文章

  1. W.Richard Stevens sock program
  2. html 学习(一)
  3. 概率DP light oj 1038
  4. CodeForces #369 div2 D Directed Roads DFS
  5. ADO.NET基础01
  6. linux scp 服务器远程拷贝
  7. [codility]PrefixMaxProduct
  8. 【Android】Android部分问题记录
  9. [转]VMware 出现下述错误: Application failure. hr=0x80040101:Failed to initialize virtual machine.
  10. 调用CachedRowSetImpl类时,为什么会出现这样的错误
  11. Spring核心--IOC
  12. DP 网易内推:合唱团
  13. 一键安装Android开发环境
  14. ansible playbook批量改ssh配置文件,远程用户Permission denied
  15. nice coding (与其亡羊补牢,不如未雨绸缪)
  16. [SPOJ375]QTREE - Query on a tree【树链剖分】
  17. [Day12]构造方法、关键字this、super
  18. android 开发 框架系列 使用 FileDownloader 实现检查更新的功能class
  19. Docker搭建wordpress博客环境(Centos7)
  20. 【3-30】document获取、事件、标记样式

热门文章

  1. HTML-loading动画1
  2. 拼题 L2-001 紧急救援 最短路计数+记录路径
  3. SPOJ 1825 Free tour II (树的点分治)
  4. 洛谷—— P1375 小猫
  5. 树讲解——紧急集合(lca)
  6. codevs——2181 田忌赛马
  7. 泛域名Wildcard Domain
  8. 1005 Spell It Right
  9. Ubuntu 16.04下使用Wine安装文件比对工具Beyond Compare 4
  10. sqlserverinternals.com