Font Size: a A A

Research And Implementation Of Cross-platform Instant Messaging System Based On NodeJS And NoSQL

Posted on:2019-09-24Degree:MasterType:Thesis
Country:ChinaCandidate:Y SunFull Text:PDF
GTID:2428330590975176Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the popularity of smart terminals,more and more people rely on smart applications to handle daily affairs.Most smart apps use message push to increase user stickiness and improve user access.The characteristics of this intelligent application real-time interconnection put forward higher requirements for small and medium-sized smart application developers.In view of the problems encountered by small and medium-sized smart application developers,this paper proposes to build an instant messaging system that is easy to integrate,easy to expand,and low in cost.The instant messaging system provides universal registration authentication,presence,messaging,friend management,video calling,and file transfer.Combining the above functions,the system is designed as a three-tier structure: client terminal layer,business service layer and data service layer.The client terminals are divided into iOS,Android and WEB,which mainly provide users with operation portals and provide multi-platform support.The business service layer mainly includes business services,file services,message services and data services.The service service mainly provides services such as user login authentication and friend management;the file service mainly provides file uploading,downloading and storage services to the terminal layer;the message service mainly provides services such as user attendance,offline,message relay,and message offline.All the services provided by the service layer are provided by the service interface,which is convenient for each client platform to call;the data service layer uses the combination of structured database and NoSQL data to provide data storage capability for the service layer.The video call function uses WebRTC as a cross-platform implementation,and the WebRTC signaling relay uses the NodeJS platform,and its protocol uses WebSocket.This study analyzes existing message protocols,integrates cross-platform business requirements,proposes a WebSocket-based communication protocol,combines the technical implementation of each client platform,and builds instant functions such as personnel attendance,message forwarding,and offline storage.Message service.The system realizes the idea of service-oriented,and presents the capabilities provided by each platform in the form of service.The platforms of the server are coupled through interfaces to facilitate the integration of the business.
Keywords/Search Tags:instant messaging system, WebSocket, WebRTC, NoSQL database
PDF Full Text Request
Related items