当前位置: 首页 > 文章 > 基于Netty框架的农村应急广播高并发数据处理 湖南农业科学 2017 (9) 100-104
Position: Home > Articles > High Concurrency Data Processing of Rural Emergency Broadcasting Based on Netty Framework Hunan Agricultural Sciences 2017 (9) 100-104

基于Netty框架的农村应急广播高并发数据处理

作  者:
黄天天;刘波
单  位:
湖南农业大学信息科学技术学院
关键词:
并发数据处理;Netty框架;线程池;网络通信;农村应急广播系统
摘  要:
针对农村应急广播系统集中高并发数据交互容易造成终端访问服务器不稳定或死机的情况,分析了线程池和Netty框架的异步非阻塞高并发数据处理的优势,提出了采用Netty框架和Java线程池分别处理网络IO操作和业务逻辑、利用长连接提高通讯效率的解决方案。经测试,当并发请求数大于1 000时,该方案的响应时间比基于NIO的方案缩短了70%,数据处理速度提升了15.8%,且降低了通信异常出现的概率。该方案在湖南省和安徽省实施后,解决了广播系统终端交互高访问量下广播不稳定的问题,系统运行良好,具有较高的稳定性。
译  名:
High Concurrency Data Processing of Rural Emergency Broadcasting Based on Netty Framework
作  者:
HUANG Tian-tian;LIU Bo;College of Information Science and Technology,Hunan Agricultural University;Hunan Provincial Key Laboratory of Information Service in Rural of Southwestern Hunan,Shao yang Uniuersity;Hunan Engineering Technology Research Center of Agricultural & Rural Information;
单  位:
College of Information Science and Technology,Hunan Agricultural University%Hunan Provincial Key Laboratory of Information Service in Rural of Southwestern Hunan,Shao yang Uniuersity%Hunan Engineering Technology Research Center of Agricultural & Rural Information
关键词:
concurrent data processing;;Netty framework;;thread pool;;network communication;;rural emergency broadcasting system
摘  要:
Because of the centralized high concurrent data communication between the terminal and the server, the terminal access to the rural emergency broadcast system is easy to become unstable or crashed. After analyzing the advantages that the asynchronous and non blocking on high concurrency data processing of asynchronous pool and Netty framework, this paper proposes a solution that using the Netty framework to Handle network IO operation, java thread pool to process business logic, and long connection to improve communication efficiency. After testing, when the concurrent request number is more than 1000, the response time of the scheme reduced by 70% than scheme based on NIO. At the same time, it accelerates processing speed by 15.8% and reduces the probability of abnormal communications. The problem of broadcast instability in the broadcast system with high terminal access is solved after implementing the scheme in Hunan and Anhui Province, and the system runs well and stably.
计量
文章访问数: 10
HTML全文浏览量: 0
PDF下载量: 0

所属期刊