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 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 proxy

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 servlet container support AJP.

AJP是定向包协议。因为性能原因,使用二进制格式来传输可读性文本。WEB服务器通过TCP连接和SERVLET容器连接。为了减少进程生成socket的花费,
WEB服务器和SERVLET容器之间尝试保持持久性的TCP连接,对多个请求/回复循环重用一个连接。一旦连接分配给一个特定的请求,在请求处理循环结束
之前不会在分配。换句话说,在连接上,请求不是多元的。这个是连接两端的编码变得容易,虽然这导致在一时刻会有很多连接。
 
一旦WEB服务器打开了一个到SERVLET容器的连接,连接处于空闲状态或已分派状态
 
一旦一个连接被分配给一个特定的请求,在连接上发送的基本请求信息是高度压缩的。在这点,SERVLET容器大概准备开始处理请求,当它处理的时候,
它能发回下面的信息给WEB服务器:(1)SEND_HEADERS、(2)SEND_BODY_CHUNK、(3)GET_BODY_CHUNK、(4)END_RESPONSE
 

最新文章

  1. heart
  2. contiki-定时器etimer
  3. 数组的Clone方法
  4. 构建高转化率的着陆页-PS+HTML+网络营销
  5. table tricks
  6. Android IOS WebRTC 音视频开发总结(十八)-- 手机适配
  7. 代码创建FlexibleSpaceBarButton(弹性空白)
  8. mac不可或缺的套件管理器Homebrew
  9. C# - Excel - Microsoft Access 数据库引擎找不到对象
  10. PHP学习笔记三十【final】
  11. 模拟JQUERY的延迟方法绑定
  12. 我写过的软件之FileExpert
  13. ssh常用用法小结
  14. tensorflow源代码方式安装
  15. MYSQL updatexml报错注入
  16. MongoDB远程维护客户端工具的使用!
  17. django restful 1-在线Python编辑器
  18. win 10 dpi 缩放
  19. Pyinstaller (python打包为exe文件)
  20. Linux 最小化安装后IP的配置(DHCP获取IP地址)

热门文章

  1. 正确的使用字符串String
  2. Scala 机器学习库
  3. Atitit.收银机小票打印功能的设计  java php c#.net版本
  4. Xilinx-7Series-FPGA高速收发器使用学习—概述与参考时钟篇
  5. java-SimpleDateFormatDemo & BirthDemo
  6. java - day10 - uptest
  7. 【问题记录】MySQL中时间戳转日期格式和Java中时间戳转日期格式偶尔不一致
  8. Doing Homework again(杭电1789)
  9. Linux虚拟机Centos 设置固定的静态IP
  10. UTF-8和GBK的区别