Font Size: a A A

Design And Implementation Of Key Technologies Of Mass Instant Messaging System

Posted on:2023-02-10Degree:MasterType:Thesis
Country:ChinaCandidate:F Y XueFull Text:PDF
GTID:2544306845496274Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In the context of the policy to promote the development of the "Internet + medical" model and encourage physicians to promote medical science through the Internet,the demand for information on medical-related fields has increased dramatically.In order to provide a more convenient and efficient information sharing channel for users,the technical department has started to build a large medical community sharing platform.At present,the platform suffers from many problems such as disorderly sending and receiving of messages,loss of messages and unstable message reception time,which directly leads to poor user experience.In order to provide a real-time,reliable,consistent and secure information sharing experience,this paper designs and implements key technologies to support instant messaging for millions of people.These technologies allow the server to maintain the performance of the instant messaging service under low load,optimizing the user experience and enhancing the stickiness of the community platform users.The key technologies used to design and implement Instant Messaging for W3 C are Spring for the overall framework of the middle office development,My Batis for data persistence,My SQL for the database,Redis for data caching and Rocket MQ for interprocess communication.each module in the system is guaranteed to be available and reliable through techniques such as flow limiting,fusing and service monitoring.In this system,the author is mainly responsible for the following tasks:(1)Optimizing data storage.This paper implements a distributed data addressing scheme for business scenarios with the help of hash addressing,and extracts it as a data routing tool.In addition,a hot and cold data isolation scheme is designed and implemented to further reduce the load on the data storage service.(2)Design and implementation of the long connection module.A secure and stable long connection communication channel is the guarantee of real-time and security of instant messaging.This module implements an intelligent heartbeat detection mechanism to maintain the communication channel activity,and also implements a data encryption mechanism using existing encryption algorithms to ensure user data security.At the same time,a message push function is implemented in the long connection module to ensure real-time message reception.(3)Design and implementation of some functions in the message management module.This module solves the difficulty of ensuring the consistency and reliability of messages in instant messaging systems by using Redis self-extension and the business layer ACK mechanism.On top of this,core functions such as sending,pulling and withdrawing messages are also implemented.(4)Design and implementation of a malicious request screening module.The data set is constructed by obtaining historical request data from the long connection module,converting the special type data into integer data,and extracting the available data features to train the XGBoost model for the purpose of using multi-dimensional features to distinguish malicious requests from normal requests.At present,the main functions of the system are running stably.The data storage service has been optimized to take an average time of 15.621 seconds for 100 message retrievals and can support daily data storage of millions of messages;the persistent connection module can stably carry 264,000 connections and support 64,000 connections for data transmission at the same time;and the 3-second reach rate of ordinary text messages has reached 95.34% after optimization.Relying on the community business,the platform’s user base is growing steadily,in line with expectations.
Keywords/Search Tags:Data storage optimization, Persistent Connection, IM, XGBoost
PDF Full Text Request
Related items