论文部分内容阅读
HTTP协议是目前Web开发的主流协议,而在多数HTTP应用中HTTP协议仅仅需要完成数据交换的任务,在这种场景下,一般不需要类似Tomcat这样的重量级HTTP协议栈,而是需要一种更轻量级的HTTP协议栈来实现系统间交互和传输数据的任务。Netty提供异步的、事件驱动的网络应用程序和工具,用以快速开发高可用、高可靠性且易扩展的网络服务器和客户端程序。本文基于Netty框架提供的HTTP协议栈基本功能和Fast Json序列化框架技术,以商品交易中的下单系统为例设计与开发了一种轻量级的HTTP协议栈实现:HTTP客户端和HTTP服务端程序。并通过实际测试验证了设计的效果。
The HTTP protocol is the mainstream protocol for web development. In most HTTP applications, the HTTP protocol only needs to complete the data exchange. In this scenario, the heavy HTTP protocol stack like Tomcat is generally not needed, but a Lighter HTTP protocol stack to achieve the task of system interaction and data transmission. Netty provides asynchronous, event-driven web applications and tools for rapid development of highly available, highly reliable and scalable web server and client programs. Based on the basic functions of the HTTP protocol stack and the Fast Json serialization framework provided by the Netty framework, this paper designs and develops a lightweight HTTP protocol stack using an order system in commodity trading as an example: HTTP client and HTTP server End program And through the actual test to verify the effectiveness of the design.