| 注册
首页|期刊导航|计算机应用与软件|基于事件驱动的高性能WebSocket服务器的设计与实现

基于事件驱动的高性能WebSocket服务器的设计与实现

曹文彬 谭新明 刘备 刘传文

计算机应用与软件2018,Vol.35Issue(1):21-27,91,8.
计算机应用与软件2018,Vol.35Issue(1):21-27,91,8.DOI:10.3969/j.issn.1000-386x.2018.01.004

基于事件驱动的高性能WebSocket服务器的设计与实现

DESIGN AND IMPLEMENTATION OF EVENT-DRIVEN HIGH PERFORMANCE WEBSOCKET SERVER

曹文彬 1谭新明 1刘备 1刘传文1

作者信息

  • 1. 武汉理工大学计算机科学与技术学院 湖北武汉430063
  • 折叠

摘要

Abstract

In recent years,instant messaging has been more and more widely used on the Internet.The Pull model adopted in the traditional servers cannot well meet the requirements of real-time information acquisition and high concurrent using accesses in the practical applications.In order to deal with the aforementioned problem,using the Push model in the real-time message transmission has become a research hotspot.Based on open source projects of Node.js,Redis and RabbitMQ,a WebSocket server is designed and implemented.The WebSocket server can provide real-time message push service to a large number of different users' subscription requests.In the WebSocket server,the Node.js multi-process management module is modified.Experimental results show that when a single WebSocket server handles more than 1 000 concurrent connections,the dislocation rate is around 1.52%,which effectively achieves the high concurrency and stability of the WebSocket server.

关键词

WebSocket服务器/高并发/异步I/O/Node.js/稳定性

Key words

WebSocket server/High concurrent/Asynchronous I/O/Node.js/Stability

分类

信息技术与安全科学

引用本文复制引用

曹文彬,谭新明,刘备,刘传文..基于事件驱动的高性能WebSocket服务器的设计与实现[J].计算机应用与软件,2018,35(1):21-27,91,8.

基金项目

湖北省自然科学基金重点项目(2014CFA050). (2014CFA050)

计算机应用与软件

OA北大核心CSTPCD

1000-386X

访问量0
|
下载量0
段落导航相关论文