Font Size: a A A

Researches On WebSocket Server Based On Node.js

Posted on:2017-07-15Degree:MasterType:Thesis
Country:ChinaCandidate:G Q TuFull Text:PDF
GTID:2428330566953042Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the development of Web applications,the real-time dynamic data becomes more important and demanding.The "request-response" model,which is adopted by those traditional servers,such as Tomcat and Apache,cannot solve the problem of active push for real-time data.With the trend of SaaS and multi-application,high concurrency plays an important role in the servers.In this situation,the high concurrent WebSocket server becomes a hot research topic.This thesis presents the studies of a high concurrent WebSocket server that could run under the environment of multi-application and multi-tenant,and provide real-time data push service in accordance with requests of different users.The main research works presented in the thesis are as follows:(1)Analyzing the Tomcat and Apache server model and the existing studies of the WebSocket server,it proposes a highly concurrent WebSocket server based on Node.js.To deal with the multi-application,multi-tenant business scenarios,the WebSocket server model is divided into several functional modules.(2)Studing multi-process module of the WebSocket server and implementing load balancing strategy of the WebSocket server from broad sense and narrow sense.Analyzing the deficiency of applying "Round-Robin" used by the multi-process load balancing strategy of Node.js to the long connection load dispatch in the WebSocket,and proposes the load balancing strategy which is suitable for the WebSocket server.(3)Studing customized configuration of WebSocket server,in order to reduce the time of building real-time Web application,simplify the process of development,and enhance the reusability of the model.This thesis develops a highly concurrent WebSocket server which is applied to multi-application and multi-tenant.At the same time,the server can also solve the problem of intensive real-time data push and customized configuration.It provides a valuable reference for the research on the high concurrent WebSocket server for the development of real time Web technology.
Keywords/Search Tags:Node.js, High concurrency, WebSocket server, Multi-application, Multi-tenant
PDF Full Text Request
Related items