Font Size: a A A

Design And Implementation Of Multi-thread Notification Center System

Posted on:2018-05-16Degree:MasterType:Thesis
Country:ChinaCandidate:M K ZhangFull Text:PDF
GTID:2428330566995768Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In today's society,the Internet has occupied a pivotal position in people's lives.The initial various handwork has slowly disappeared in people's lives and has been replaced by the increasingly developed network.Times,a variety of applications gradually changing people's living habits,a variety of large-scale project management system so slowly generated,with more and more complex applications,more and more complicated,which slowly produced a lot of problems,including One thing that is difficult to do real-time monitoring.Because once the project problems or failures,if there is no monitoring,the problem did not know how to solve after the emergence of a problem,we can only step by step investigation,which in the modern enterprise which is difficult to accept,the notification center system At this time it has played its role.Notification center system,simply to understand,is responsible for receiving the request transmitted from other systems,and then send the information it needs to the appropriate personnel system,it can mail,SMS,QQ,We Chat,etc.will be useful information Passed to the people in need.The purpose of the notification center system is to send the relevant information to the relevant personnel as soon as the system fails,so as to effectively avoid the problem of censorship problems that have no clue.The multi-thread notification center system is mainly divided into five modules:management,production and sending module,Nsq queue [10] module,and remote service(Grpc)module [21].The main function of the management module is to manage the system as necessary,such as application creation management,mail template management,Production module is mainly responsible for the remote service call authentication,traffic(call volume)monitoring,message(logic)processing.The sending module is mainly responsible for getting the sending message,the rendering of the template,the sending of the message,the sending of the multi-thread [32],the invocation of the third-party excuseand so on from the Nsq queue.Nsq queue module is mainly responsible for storing the message passed from the production module,and ready to send to the sending module.The remote service(grpc)call module is mainly responsible for establishing the grpc client on the remote side and calling the notification center system to send the interface.The implementation of this multithreaded notification center system enables the creation of related application apps on the management interface and the establishment of appropriate frequency management.Other systems need this system to send the messages they wish to send.In this process need to be first authenticated,and then verify that the information sent in the system has a corresponding app,will be temporarily stored in Nsq messaging platform management center,and then wait After the sending module sniffs Nsq,it obtains it from the Nsq message queue,finds the corresponding sending information template,and renders the template.After the rendering is successful,the corresponding third-party API is found and the multi-thread sends the message to a specific user.The system can greatly enrich the existing majority of the system,and you can promptly call the notification center system,then send the corresponding exception information to a specific Users,timely troubleshooting,the system gradually stabilized.
Keywords/Search Tags:Notification center system, Golang, Nsq, MicroService
PDF Full Text Request
Related items