Font Size: a A A

Design And Implementation Of The Web Server Push Technology

Posted on:2014-02-04Degree:MasterType:Thesis
Country:ChinaCandidate:Q ZhengFull Text:PDF
GTID:2248330398471939Subject:Information security
Abstract/Summary:PDF Full Text Request
With the rapid development of science and technology, traditional "request-response" mode-based web application cannot meet all the needs of users, a server push technology gets more and more people’s attention and has been applied to many important fields now, such as real-time monitoring of the stock, the release of public service information and instant messaging, etc. Most of these push-related applications are achieved through the installation of a client application, although they are able to meet the reverse push function, but due to the need to install software on each client, it is not conductive to the maintenance of the client. In contrast, application based on B/S model has the advantage of cross-platform, free client maintenance, etc, so more and more applications based on C/S gradually migrate to the web platform. In the internet, all the resources are based on the HTTP protocol, HTTP is a stateless protocol, client initiated the request and the server initiative to disconnect the current connection when the client receives the response information. This defect causes the development of server push technology based on web is very slow. How to change the HTTP connection mode and establish a full-duplex communication channel between the browser and server is the difficulty to realize the web-based reverse push function.At present, may ways, such as HTTP long connection, DWR reverse push, hidden Iframe, etc for realizing server push based on web are available. Their common feature is that communication between a browser and a server is encapsulated by using such technologies as JavaScript, Ajax or the like, therefore, the difficulty of application program development is reduced, but the connection is not a full-duplex communication channel, it cannot receive information while transmitting information, so this method cannot guarantee the receive data is real-time. In addition, in the case of frequent transmission information, they all have server-overloaded performance problems.In this paper, under the actual situation of the existing projects, proposed a scheme which combined Websocket and event stream processing technology to achieve reverse push function based on web server. The Websocket is generated in order to achieve web push, it uses Websocket protocols, when connection between a client and a server is established, two-way information transmission can be realized in a manner of full-duplex communication. The event stream processing technology is a technology for performing complex analyses on large amounts of data in a manner of near real-time. With the adoption of the technology, a large number of event data streams can be rapidly analyzed in real time. Certain actions are triggered when a specific event occurs. Because of less information on these two technologies and practical use, therefore, the article will study the realization of the principle of the two technologies, and combined with the characteristics of their applications to realize a real-time topology diagram module which in order to show how to implement the reverse push function based on web server. Finally, through some test cases and performance testing to verify the feasibility of the program as well as the advantages compared with current existing pushes.By the study of this subject, a suggestion was made for server push in real time in the server-side high frequent receiving data case, and this program is applied to the realization of an internal network topology diagram module. Verify the real-time nature of the program and the network performance in specific applications, proved the correctness and feasibility of the program, and provide an available technical framework for future similar scenarios.
Keywords/Search Tags:server reverse push, event stream processing, Websocket, Real-time web system
PDF Full Text Request
Related items