Design and Implementation of a High Performance Event-Driven WebSocket
DOI: 10.23977/cpcs.2016.11005 | Downloads: 77 | Views: 6109
Wenbin Cao 1, Bei Liu 1, Xinming Tan 1, Chuanwen Liu 1
1 Computer Science Technology, Wuhan University of Technology,Wuhan, Hubei 430063, China
Corresponding AuthorWenbin Cao
In recent years, instant messaging has been more and more widely used on the Internet. The Pull model adopted in the traditional servers can not 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. Firstly, based on the open source projects of Node.js, Redis and RabbitMQ, a WebSocket server which can provide real-time message push service to a large number of different users' subscription requests is designed and implemented. Secondly, the function modules and implementation details of each layer are analyzed in detail. At last, experimental results show that the feasibility of WebSocket server.
KEYWORDSWebSocket protocol, Node.js, High concurrent, Event-driven, Stability.
CITE THIS PAPER
Wenbin, C. , Xinming, T. , Bei, L. and Chuanwen, L. (2016) Design and Implementation of a High Performance Event-Driven WebSocket Server. Computing, Performance and Communication systems (2016) 1: 28-32.
 Lu Chen, Feng Xiang-yang, Su Hou-qin. Study and Implementation of Html5 WebSocket Handshake Protocol [J]. Computer Applications and Software,2015, 32(1):128-131.
 Pimentel V, Nickerson B G. Communicating and Displaying Real-Time Data with WebSocket[J]. IEEE Internet Computing, 2012, 16(4):45-53.
 Cai Jin-da, Jiang Zhen-fei. Remote Monitoring and Control Method for Printing and Packaging Machinery Based on WebSocket [J]. Packaging Engineering,2013(15):87-90.
 Ma K, Zhang W. Introducing browser-based high-frequency cloud monitoring system using WebSocket Proxy[J]. International Journal of Grid & Utility Computing, 2015, 6(1).
 Jin Feng, Zhang Yue, Yong Peng. Design and Implementation of Monitoring System in B/S Mode Base on Two Servers [J]. Computer Simulation,2014, 31(2):201-205.
 Melnikov A. The WebSocket Protocol[J]. 2011.
 Videla A, Williams J J W. RabbitMQ in action : distributed messaging for everyone[J]. 2012.