Font Size: a A A

Design And Implementation Of Personal Messaging System Base On Polling And MQTT

Posted on:2018-05-17Degree:MasterType:Thesis
Country:ChinaCandidate:D X ZhaoFull Text:PDF
GTID:2348330512995285Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The success of WeChat we see the "social" meaning and strength,many Internet products are also trying to convert the original single tool attributes to the integration tool properties based on sharing and social.The project is intended to add the personal messaging service to the original Sohu News client,from a single news application into a comprehensive application of social elements,expand the service,enhance the stickiness.Personal messaging are an indispensable feature to help Sohu New to build strong relationships.The personal messaging system can ensure that the message transceiver real-time reliable,to adapt to different network environments;support rich media files,and has a high transmission efficiency;good fit in different screen size,running smoothly on different ROM.This paper first introduces the background and significance of the project of the personal messaging system,analyzes and compares the current situation of the similar products at home and abroad,and then gives a brief introduction to the MQTT protocol.System selected MQTT implementation tools Paho and Android system permissions related issues.Then,from the characteristics of the personal messaging system and the characteristics of the user,the requirements of the system are analyzed in detail,and the functions of the main modules of the system are described in detail by using the use case diagram and the use case description table.Then,paper describes the architecture,And functional structure and data storage of these aspects of the system design of the outline.Introduced the framework of the overall technology implementation of the personal messaging system.Then the summary design is refined and realized.The detailed design and implementation of the private letter system are described through the flow chart and the class diagram.Finally,the paper introduces the test situation and implementation effect of the private letter system.The personal messaging system uses MQTT and long polling techniques in push mode,uses Glide to manage the loading and caching of images,using SQLite as a local storage tool,and using the Volley network communication framework to manage network traffic.The personal messaging system contains the following modeules:(1)Message management module:responsible for all messages send,reception,permanent,cache cleaning.(2)Media file management module:responsible for the picture and video recording,processing,storage and loading;(3)Voice management module:responsible for voice recording,playing,storage;(4)Network management module:responsible for the beginning,terminating and switching between polling and long connection,detecting the health of th connection,to change the polling interval according to the situation.The author of this paper is responsible for the design,implementation and partial testing of the message management module,the rich media management module,the voice management module,and the design,implementation and partial testing of some network management modules.The personal messaging system is released now,and in a continuous improvement and iteration,and the system has not been found a major flaw after release,the user response is well.The system's release made Sohu news client function more abundant,and the establishment of a strong link between users of the bridge,directly optimize the user experience.
Keywords/Search Tags:MQTT, Privete Message, Android, SNS
PDF Full Text Request
Related items