检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王宁 张娜[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)
出 处:《智能计算机与应用》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[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.191.212.175