Font Size: a A A

Research And Application Of Server Push Technology Based On The WebSocket

Posted on:2017-01-28Degree:MasterType:Thesis
Country:ChinaCandidate:L ZhangFull Text:PDF
GTID:2308330503984917Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of Web technology, user’s requirement to the real time of the Web application is more and more higher. Traditional Web applications based on the pattern of "request-response" can’t satisfy the user’s requirements. The server push technology can take the initiative to send new data to the client browser solving the problem of large transmission delay existed in the traditional mode. Improving data transmission efficiency and processing efficiency in the same time will greatly improve the network quality of service and the effect of user experience. Real-time Web application solutions was proposed based on the study of the server push and real-time data processing. The main research contents of the paper include:Firstly, the existing server push technology has carried on the all-round analysis and contrast. For the HTTP protocol itself inherent "request and response" pattern to further study of the WebSocketserver push technology. Design the server push plan of the WebSocket realizing the server and the client’s full duplex communication. Compare with the server push technology of the Comet verifying the superiority of webSocket server push technology.Secondly, on the basis of analyzing the real time Web application characteristics, this paper study the basic principle of Complex Event Processing technology and the Event Processing Language and the Esper of complex event processing engine according to the data processing requirement of real-time. A real-time Web application solutions was proposed based on the WebSocket server push technology and Complex Event Processing technology giving the whole module structure and module design.Thirdly, the stock transaction monitoring prototype system was built using this scheme to verify the feasibility of solution. It got the stock data from forecasters nets and Sinajs server to simulate the real-time stock trading; Stock trading events were described by event algebra method; Instance Esper engine. Use the Event Processing Language to formulate the event processing rules of Esper engine according to the complex event algebra description scription. Esper engine was instantiated with adding events. This paper realized the complex event processing of data、 defined a Java interface combining complex event processing Esper with data push WebSocket and extended the Tomcat to push the data through the WebSocket connection between server and client, testing the system performance and verifying the feasibility of the proposed strategy.
Keywords/Search Tags:websocket, server push technology, complex event processing, esper, real-time web application
PDF Full Text Request
Related items