Font Size: a A A

Design And Implementation Of Message Push System In Cloud Platform

Posted on:2022-01-01Degree:MasterType:Thesis
Country:ChinaCandidate:X Y ChenFull Text:PDF
GTID:2518306524489884Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of cloud computing,more and more companies are transferring data and services to the cloud.Under the traditional model,enterprises operates data centres of its own which cause problems like equipment management difficulties,low resource utilization,and high hardware upgrade costs.The cloud computing platform can elastically provide enterprise users with computing resources,network resources,storage resources and other resources on demand,which greatly saves users the cost of hardware management and maintenance.The current cloud platform focuses on how to divide and dispatch resources as needed to provide efficient and stable services for users.However,in terms of message push,there is a lack of specialized functional components for message push processing.The communication between the platform control center and various business modules and the communication between the platform control center and users are mixed,which will affect the performance of the platform and increase the difficulty of management of the platform.Therefore,this thesis designs and implements a message push system under the cloud platform to uniformly process the message transmission of the platform.After the research and analysis of the mainstream message push protocol,considering the lightweight and reliable characteristics of the MQTT protocol,this thesis chooses the MQTT protocol as the main push protocol of the message push system.After determining the selected protocol,according to the actual problems faced by the current cloud platform,this thesis first analyzes the specific requirements in detail,and designs the system software architecture according to the requirements,and divides the functional modules of the business logic layer that provides the main services,including security verification function modules,push function modules,and clusters Management module and monitoring and statistics module.Subsequently,this thesis has carried on the concrete design and realization to each module.The security verification function module uses password authentication and SSL encryption to ensure the safety and reliability of system communication,and uses access control lists on authority management of the system.The core push module modified the message persistence method on the basis of the open source message agent software Mosquitto,added offline push and fixed-point push functions,optimized the original push process and used the time wheel algorithm to optimize the heartbeat detection function,and also designed And implement a memory pool,which improves the memory usage efficiency of the message agent node.In the cluster management module,a decentralized cluster of system message agent nodes is designed and implemented,which solves the problem of single point of failure in the bridge mode of the original Mosquitto program.In addition,for cluster load balancing,this thesis uses a dynamically adjusted weight polling algorithm,and uses the open source projects nginx-stream-upsync-module and consul to complete the dynamic update of weights.The monitoring and statistics module is responsible for monitoring and collecting performance data of each node in the cluster and statistics of system service information.Finally,the message push system is tested.According to the analysis of the test results,the realized system functions and performance are in line with expectations.
Keywords/Search Tags:Push technology, MQTT protocol, decentralized cluster
PDF Full Text Request
Related items