首页> 中文期刊> 《湖南农业科学》 >基于Netty框架的农村应急广播高并发数据处理

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

         

摘要

针对农村应急广播系统集中高并发数据交互容易造成终端访问服务器不稳定或死机的情况,分析了线程池和Netty框架的异步非阻塞高并发数据处理的优势,提出了采用Netty框架和Java线程池分别处理网络IO操作和业务逻辑、利用长连接提高通讯效率的解决方案.经测试,当并发请求数大于1000时,该方案的响应时间比基于NIO的方案缩短了70%,数据处理速度提升了15.8%,且降低了通信异常出现的概率.该方案在湖南省和安徽省实施后,解决了广播系统终端交互高访问量下广播不稳定的问题,系统运行良好,具有较高的稳定性.%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.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号