Font Size: a A A

Design And Realization Of Message Push Server Platform Based On WebSocket

Posted on:2018-10-07Degree:MasterType:Thesis
Country:ChinaCandidate:L YangFull Text:PDF
GTID:2348330542951568Subject:Microelectronics and Solid State Electronics
Abstract/Summary:PDF Full Text Request
In recent years,with the increasing demand for information push services on smart applications,a large number of technologies related to information push have emerged on the market.However,these technologies often only cover one of the mobile terminal or the web client,the push rate of the information is low,and the concurrent connection amount is small.In order to realize cross-platform,high push arrival rate and high concurrent push system,this thesis proposes a push service solution based on WebSocket.WebSocket protocol is a new protocol for Html5 to realize the bidirectional communication between client and server.The push system was designed on the basis of deeply researching the protocol.The overall architecture design of the push system is introduced firstly,and then puts forward the design of cross platform adaptation layer,push message feedback mechanism and server concurrency optimization.In order to encapsulate the distinction of different client in the server,a cross-platform adaptation layer that including user registration and login module and heartbeat mechanism is designed;to improve the arrival rate of push messages,this thesis designs a message feedback mechanism which including the message confirmation mechanism,offline message retransmission mechanism and disconnection reconnection mechanism to ensure that online users and offline users can receive server-side pushed messages timely;in order to enhance the system concurrency connection quantity,the number of Linux system connections and TCP protocol configuration are optimized,and the thread pool was designed to reduce the performance loss caused by thread switching.Besides,this thesis introduces the application of the push system,and expound the detail function of the system from the server side,the mobile terminal and the web client respectively.Finally,the system is tested by custom software.g.From the performance point of view,the system can achieve a single 800,000 concurrent connections,and can achieve an average of 95.75%of the online arrival rate,while the average time Delay control in about 5s.Functional and performance tests show that the push service designed in this paper has achieved the desired goal in terms of function and performance.
Keywords/Search Tags:WebSocket, push system, Netty, real-time communication, Android
PDF Full Text Request
Related items