Font Size: a A A

Design And Implementation Of Distributed Message Push System Based On Long Connection

Posted on:2020-11-12Degree:MasterType:Thesis
Country:ChinaCandidate:C T ZhaiFull Text:PDF
GTID:2428330575459892Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the popular use of smart terminals,tablet computers and other multimedia terminals and the rapid development of 4G.A variety of APPS based on Android have emerged,affecting people's habits.By pushing content to the user through analysis of the user's preferences,push services for mobile terminal greatly improved the customer retention,therefore become an important integral part of APR Since the Android's official message push mechanism C2DM(Cloud to Device Messaging)reached a low coverage,APP developers need to develop their own push message services.This paper "Distributed Message Push System Based on Long Connection1" is a real project that I implemented in an Internet company in China.During the internship,I did a lot of development and optimization work based on the practice and analysis of this actual project.At the same time,the paper introduces a consistent hash algorithm to ensure the dynamic expansion of the system,and design an efficient and secure encryption scheme to achieve a distributed architecture of multi-module collaborative work.This paper analyzes and compares commonly used network protocols and network communication frameworks.It uses JAVA NIO network framework Netty to realize the establishment of TCP communication channel long connection between client and server.The use of heartbeat detection means the stability and availability of communication channe.The open source data serialization framework Protocol Buffers is used to serialize and deserialize the protocol data for maximum efficiency transmission.The unique security protocol design combined with asymmetric and symmetric encryption algorithms not only ensures system security.Higher encryption efficiency is guaranteed.In addition,this paper introduces a consistent hash algorithm in the system,which makes the system have better scalability,and realizes the decomposing and decoupling of various functional modules of the system.It can be deployed in different machines to achieve collaborative work.The distributed architecture makes the system more flexible,so as to meet the high concurrency and high availability of the system,and bring more efficient and reliable message push services to the enterprise.The testing result ot the distributed message push system show that this system has completed requirement of enterprise-level message push,and we can use it in the online environment.This system has achieved the desired requirements.The innovation of this thesis is to introduce a consistent hash algorithm for the system to improve the system's high concurrency and high availability.The difficulty of this project is to design and implement a distributed message push system and run stably on the actual running network.At present,this project has supported millions of mobile devices online at the same time,and the messaging performance can reach tens of thousands of QPS,indicating that the system achieves the requirements of enterprise-level message push,can reach the level of production environment use,and achieves the predetermined design purpose.
Keywords/Search Tags:Message push, Long connection, Distributed, Consistent hashing
PDF Full Text Request
Related items