检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:黄天天[1] 刘波[1,2,3] HUANG Tian-tian;LIU Bo(College of Information Science and Technology, Hunan Agricultural University, Changsha 410128, PRC;Hunan Provincial Key Laboratory of Information Service in Rural of Southwestern Hunan, Shao yang Uniuersity, Shao yang 422000, PRC;Hunan Engineering Technology Research Center of Agricultural & Rural Information, Changsha 410128, PRC)
机构地区:[1]湖南农业大学信息科学技术学院,湖南长沙410128 [2]邵阳学院湘西南农村信息化服务湖南省重点实验室,湖南邵阳422000 [3]湖南省农村农业信息化工程技术研究中心,湖南长沙410128
出 处:《湖南农业科学》2017年第9期100-104,共5页Hunan Agricultural Sciences
基 金:湘西南农村信息化服务湖南省重点实验室开放基金课题(XAI20150326);湖南省科技厅重点项目(2015NK2145;2016NK2118);2014湖南省教育厅科研一般项目(14C0542);2016年度湖南农业大学大学生创新性实验计划项目(XCX16094);湖南农业大学团委科技创新立项项目(自科类2016ZK15;2017ZK25)
摘 要:针对农村应急广播系统集中高并发数据交互容易造成终端访问服务器不稳定或死机的情况,分析了线程池和Netty框架的异步非阻塞高并发数据处理的优势,提出了采用Netty框架和Java线程池分别处理网络IO操作和业务逻辑、利用长连接提高通讯效率的解决方案。经测试,当并发请求数大于1 000时,该方案的响应时间比基于NIO的方案缩短了70%,数据处理速度提升了15.8%,且降低了通信异常出现的概率。该方案在湖南省和安徽省实施后,解决了广播系统终端交互高访问量下广播不稳定的问题,系统运行良好,具有较高的稳定性。Because of the centralized high concurrent data communication between the terminal and the server,the terminal accessto the rural emergency broadcast system is easy to become unstable or crashed.After analyzing the advantages that the asynchronousand non blocking on high concurrency data processing of asynchronous pool and Netty framework,this paper proposes a solution thatusing the Netty framework to Handle network IO operation,java thread pool to process business logic,and long connection to improvecommunication efficiency.After testing,when the concurrent request number is more than1000,the response time of the scheme reducedby70%than scheme based on NIO.At the same time,it accelerates processing speed by15.8%and reduces the probability of abnormalcommunications.The problem of broadcast instability in the broadcast system with high terminal access is solved after implementing thescheme in Hunan and Anhui Province,and the system runs well and stably.
关 键 词:并发数据处理 Netty框架 线程池 网络通信 农村应急广播系统
分 类 号:TP391[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.30