信息网络安全 ›› 2017, Vol. 17 ›› Issue (12): 29-35.doi: 10.3969/j.issn.1671-1122.2017.12.006

• • 上一篇    下一篇

一种高并发网络Web应用技术研究

GULKhanSafiQamas, 王鹏, 罗森林, 潘丽敏()   

  1. 北京理工大学信息系统及安全对抗实验中心,北京 100081
  • 收稿日期:2017-10-21 出版日期:2017-12-20 发布日期:2020-05-12
  • 作者简介:

    作者简介:GUL Khan Safi Qamas(1986—),男,巴基斯坦,博士研究生,主要研究方向为信息安全;王鹏(1995—),男,河北,本科,主要研究方向为信息安全;罗森林(1968—),男,河北,教授,博士,主要研究方向为信息安全、数据挖掘、文本安全等;潘丽敏(1968—),女,黑龙江,高级实验师,硕士,主要研究方向为信息安全、数据挖掘、文本安全、媒体安全。

  • 基金资助:
    国家242信息安全计划[2005C48];北京理工大学基础研究基金[20160542013]

A Technical Research on High-concurrency Web Application

Khan Safi Qamas GUL, Peng WANG, Senlin LUO, Limin PAN()   

  1. Information System and Security & Countermeasures Experimental Center, Beijing Institute of Technology, Beijing 100081, China
  • Received:2017-10-21 Online:2017-12-20 Published:2020-05-12

摘要:

随着网络技术的飞速发展,社会对于网络应用的质量要求也越来越高,而并发能力作为网络应用的基本能力之一,在很大程度上影响了用户的使用体验。针对基于多线程的并发成为限制并发能力提升的瓶颈,基于多线程的应用在高并发场景中会浪费大量系统资源等问题,文章设计并实现了一个基于事件的异步请求响应方案。该方案使用基于事件的并发方法,对用户的请求可以进行无阻塞的响应,同时可以有效降低系统的内存消耗,并根据后端响应服务的特性将后端服务器群划分为负载均衡模块和Web响应集群模块,然后将这些模块整合成一套高并发Web响应系统,该系统能够实现Linux平台的高并发响应。文章最后对此原型系统进行了实验,实验结果表明,系统在并发能力、可靠性、稳定性方面均有较好的表现,能够利用系统完成万级并发的稳定响应任务,具有较高的实际应用价值。

关键词: 高并发, 异步响应, 负载均衡

Abstract:

With the development of network technology, the quality requirements of the network for network applications are increasing, which is basic ability of network applications and bring large extent affected to the user experience. But existing techniques like the multi-thread concurrency as a bottleneck to limit the ability of concurrency, multithreaded applications may waste a lot of system resources in high concurrent scenes. This paper implements an event-based asynchronous request response scheme, which uses an event-based concurrency method to respond to the user’s request without blocking, and can effectively reduce the memory consumption of the system, and according to the back-end response service. The back-end server group is divided into load balancing module and Web response cluster module, and then these modules are integrated into a high-level concurrent Web response system, which can realize the high concurrent response of Linux platform. At the end of this paper, the prototype system is experimented. The results shows that the system has better performance in terms of concurrency, reliability and stability, and can use the system to complete the stable response task of 10000 classes, which has high practical application value.

Key words: high-concurrency, asynchronous response, load balance

中图分类号: