基于Netty的高性能消息中间件设计与实现  被引量:10

Design and implementation of high-performance message middleware based on Netty

在线阅读下载全文

作  者:王宁 张娜[1] 于泽川 苏逸凡 包晓安[1] WANG Ning;ZHANG Na;YU Zechuan;SU Yifan;BAO Xiaoan(School of Information Science and Technology,Zhejiang Sci-Tech University,Hangzhou 310018,China)

机构地区:[1]浙江理工大学信息学院,杭州310018

出  处:《智能计算机与应用》2021年第6期168-172,177,共6页Intelligent Computer and Applications

基  金:浙江省重点研发计划项目(2020C03094);浙江省自然科学基金青年基金(LQ20F050010);国家自然科学基金(6207050141)。

摘  要:随着互联网业务规模的扩大以及访问量的增多,应用服务可能因流量过大而产生崩溃。为解决此问题和保证应用服务器接收消息的准确性本文设计了一种基于Netty的消息中间件。该中间件以Netty网络框架为基础实现异步通信,同时为了提升通信双方的编解码速度及缩减整个通信流程的时间,自定义了一种通信协议。该中间件根据本协议特点设计了消费模型及基于文件系统的存储模型,并在消费者端进行了幂等性处理,以提高中间件的可靠性与准确性。实验表明,相比于不使用中间件或使用其它中间件,该中间件在产业化的智慧宿管平台中应用,有效提高了应用服务的响应速率以及接收消息的准确率,保证了智慧宿管平台的平稳运行。With the expansion of Internet and the increasing of the traffic,application service might collapse due to excessive flow.This paper designed a message middleware based on Netty to solve this problem and ensure the accuracy of the message received by the application server.This middleware realized asynchronous communication based on Netty network framework.At the same time,in order to improve the encoding and decoding speed of both sides of communication and reduce the time of the whole communication process,a custom communication protocol was defined.For this middleware designed consumption model and storage model based on file system according to the characteristics of this protocol,and carried out idempotent processing on the consumer side,so as to improve the reliability and accuracy of middleware.The experiment shows that compared with no middleware or other middleware,the application of this middleware in the industrialized smart dormitory administrator platform can effectively improve the response rate of application service and the accuracy rate of receiving messages,and ensure the smooth operation of the smart dormitory administrator platform.

关 键 词:消息中间件 Netty 消费模型 存储模型 幂等性处理 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象