CN108427615A - A kind of message monitoring method and device - Google Patents

A kind of message monitoring method and device Download PDF

Info

Publication number
CN108427615A
CN108427615A CN201710076985.XA CN201710076985A CN108427615A CN 108427615 A CN108427615 A CN 108427615A CN 201710076985 A CN201710076985 A CN 201710076985A CN 108427615 A CN108427615 A CN 108427615A
Authority
CN
China
Prior art keywords
message
monitoring
identifier
client
queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710076985.XA
Other languages
Chinese (zh)
Other versions
CN108427615B (en
Inventor
泮华杰
成睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710076985.XA priority Critical patent/CN108427615B/en
Publication of CN108427615A publication Critical patent/CN108427615A/en
Application granted granted Critical
Publication of CN108427615B publication Critical patent/CN108427615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention discloses a kind of message monitoring method and device, wherein message monitoring method includes:Receive the first message of the first client transmission;The first monitoring message corresponding with the first message is generated, first monitoring message is used to indicate and the associated transmission information of the first message;The first message is stored in the message queue of kafka clusters, to wait for that the second client reads the first message from the message queue;According to first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, second monitoring message is the monitoring message generated when second client reads second message in preset time from the message queue, and second monitoring message is used to indicate and the associated reception information of the second message.Using the embodiment of the present invention, each message can be monitored with the presence or absence of exception is read, improve the accuracy of information consumption.

Description

A kind of message monitoring method and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of message monitoring method and device.
Background technology
In large-scale distributed system, often uses message queue and to execute the different module of speed in each system It can be with cooperating.System will need the data that send to be packaged into message message queue to be written (i.e. production disappears by a component Breath), another component reads message from queue, therefrom parses data (consuming message), to reach between two clients The purpose of data communication.
Kafka is message queue component of commonly increasing income on Apache, by message forwarding kafka clusters and externally application Program (Application Program Interface, API) interface is constituted.The component of message queue is written and reads message Component can be by calling the api interface that kafka is provided that kafka clusters are written in message or be read from kafka clusters Message and complete to interact.
During being communicated using kafka, it is understood that there may be message such as omits, mistakes at the abnormal problems, makes in the prior art It is offseted with the tool of the service condition of the monitoring messages queues such as Kafka Web Console and the Kafka Manager to increase income Breath abnormal conditions are monitored, but these monitoring tools cannot all monitor the forwarding situation of each message.
Invention content
A kind of message monitoring method of offer of the embodiment of the present invention and device can monitor each message with the presence or absence of reading Exception is taken, the accuracy of information consumption is improved.
First aspect present invention provides a kind of message monitoring method, including:
Receive the first message of the first client transmission;
Generate corresponding with the first message the first monitoring message, first monitoring message is used to indicate and described the The transmission information of one message relating;
The first message is stored in the message queue of kafka clusters, to wait for the second client from the message queue It is middle to read the first message;
According to first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that second client is given birth to from the message queue when reading second message in preset time At monitoring message, and second monitoring message is used to indicate and the associated reception information of the second message.
Second aspect of the present invention provides a kind of message monitoring device, including:
Receiving module, the first message for receiving the transmission of the first client;
First generation module, for generating the first monitoring message corresponding with the first message, first monitoring disappears Breath is used to indicate and the associated transmission information of the first message;
Memory module, for by the first message be stored in kafka clusters message queue in, with wait for the second client from The first message is read in the message queue;
Determining module, for according to first monitoring message and the second monitoring message, whether determining the first message Abnormal in the presence of reading, second monitoring message is that second client is read in preset time from the message queue The monitoring message generated when second message, and second monitoring message is used to indicate and believes with the associated reception of the second message Breath.
Implement the embodiment of the present invention, has the advantages that:
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of message monitoring method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another message monitoring method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another message monitoring method provided in an embodiment of the present invention;
Fig. 4 is system architecture diagram in the prior art;
Fig. 5 is a kind of system architecture diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of message monitoring device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of determining module provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another message monitoring device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another message monitoring device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Term " first ", " second " in description and claims of this specification and the attached drawing etc. are for distinguishing Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap It includes for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not be each meant Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Below in conjunction with attached drawing 1- attached drawings 9, message monitoring method provided in an embodiment of the present invention and device are carried out detailed It introduces.
Fig. 1 is please referred to, is a kind of flow chart of message monitoring method provided in an embodiment of the present invention;This method may include with Lower step:
S100 receives the first message that the first client is sent;
The message monitoring method of the embodiment of the present invention can be applied in kafka message queue components, kafka by message with Theme topic is that unit is concluded.The program to give out information to kafka topic is usually known as producer producers, That is the first client of the embodiment of the present invention;Topic will be subscribed and consumes the program of message and be known as consumer consumer, i.e., this Second client of inventive embodiments.
As shown in figure 4, be the system architecture diagram for realizing news release and consumption by kafka in the prior art, due to Forwarding cluster is needed to support multiple and different users while be used, and different kafka message queues use theme (topic) as not With the unique designation of message queue.First client needs to specify a topic, the second client termination when sending a message The specified message for receiving the topic is also required to when receiving message, to complete the exchange of message.At present in the industry, user passes through calling The api interface of kafka completes messaging.
It is specific optional, the original api interface of the first client call kafka, and clothes are sent a message to by network Be engaged in end kafka clusters message queue in, meanwhile, the first client needs specified topic, and kafka clusters are to the second client End provides message, i.e. the second client reads message by reading API from specified topic.It should be noted that client kimonos Business end controls (Transmission Control Protocol, TCP) agreement by transmission and is communicated.Kafka is provided at present Java client, and support is both provided to multilingual.
Due to cannot achieve the monitoring to each message in the existing system framework of Fig. 4, the embodiment of the present invention is Fig. 4's Some improvement are made on the basis of system architecture, Fig. 5 is a kind of system architecture diagram provided in an embodiment of the present invention.The system architecture packet Include the first client, server-side and the second client, the server-side of the embodiment of the present invention may further include the first API, Kafka clusters, monitoring module and the 2nd API, it should be noted that the first API, kafka cluster, monitoring module and Two API can be disposed at least one server.It is understood that the composition form of various components can not in server-side Be defined in Fig. 5, for example, can be by Cheng Yi the first API, kafka cluster, monitoring module and the second API set chip, Message monitoring to the chip as an executive agent completion embodiment of the present invention, as long as the embodiment of the present invention can be realized Message monitoring method is all fallen within the protection scope of the present invention.
Server-side receives the first message that the first client is sent, which can specify a topic, this One message includes that the first client needs the content issued.As shown in figure 5, the first API of the first client call is to server-side Send first message.
S101, generates corresponding with the first message the first monitoring message, first monitoring message be used to indicate and The associated transmission information of first message;
In the embodiment of the present invention, server-side generates the first monitoring message corresponding with first message, optionally, first prison Control message be used to indicate with the associated transmission information of the first message, such as first monitoring message may include for uniquely mark Know the first identifier of the first message, the transmission time information of the first message, and pay close attention to the contact person of the first message Contact details, the theme etc. which sends are as shown in the table provided in an embodiment of the present invention a kind of optional First monitoring message form schematic diagram:
The format of first monitoring message can be self-defined according to business use demand, is not only limited to Current protocols.First disappears The unique mark of breath is signature sig, which can be calculated according to first message, and computational methods can be by specified Function calculates the acquisition of MD5 values according to the content of first message.
Optionally, as shown in figure 5, the first API receive the first client transmission first message after, calculate this first The sig of message, while the first API generates the first monitoring message corresponding with the first message.
The first message is stored in the message queue of kafka clusters, to wait for the second client from the message by S102 The first message is read in queue;
In the embodiment of the present invention, which is stored in the message queue of kafka clusters by server-side, kafka clusters Message queue using topic as dividing unit, i.e. topic is used for one queue of unique mark, and server-side is by first message It is specified in the corresponding message queues of topic with this in deposit kafka clusters.Different user can be to the message of kafka clusters Message is written in queue.
Include message topic and monitoring topic, the first monitoring message deposit corresponding with first message in kafka clusters It is monitored in kafka clusters in the corresponding message queues of topic, and all users are stored in kafka to the message of kafka collection pocket transmissions In cluster in the corresponding message queues of message topic, message topic may include multiple topic.
Optionally, as shown in figure 5, first message and sig corresponding with first message are sent to kafka collection by the first API Group specifies in the corresponding message queues of topic, while the first monitoring message corresponding with first message is sent to by the first API In the corresponding message queues of monitoring topic of kafka clusters.
S103 determines the first message with the presence or absence of reading according to first monitoring message and the second monitoring message Abnormal, second monitoring message is that second client reads second message in preset time from the message queue The monitoring message of Shi Shengcheng, and second monitoring message is used to indicate and the associated reception information of the second message.
In the embodiment of the present invention, the second client, which can be sent to server-side from the reading of specified topic reading message, to be referred to It enables, is specified as shown in figure 5, the 2nd API of the second client call kafka systems is read into the message queue of kafka clusters The message of topic.
When read in the message queue from kafka clusters the second client specify topic message when, according to this second Message generates the second monitoring message, it should be noted that second monitoring message can be risen in advance in first message sending time If in the time, according to the monitoring message that the read second message of the second client generates, which is the preset time The interior read all message of second client.
Second monitoring message is used to indicate and the associated reception information of second message, optionally, second monitoring message It may include the reception theme of the second identifier of the second message, the receiving time information of the second message and the second message Etc., it is a kind of form schematic diagram of optional second monitoring message provided in an embodiment of the present invention as shown in the table:
The format of second monitoring message can be self-defined according to business use demand, is not only limited to Current protocols.Second disappears The second identifier of breath is that signature sig, the sig can be stored in the message queue of kafka clusters with second message packing, when The sig can be obtained when receiving the second message, and generates the second monitoring message.
According to the second monitoring message received in first monitoring message and preset time, determine that the first client is sent out The first message sent is abnormal with the presence or absence of reading, for example, the second client does not receive the first visitor within the preset time time limit The first message that family end is sent, it is producer (i.e. the first client) to cause the message of same sig to only exist a msg_src Monitoring message, without receive msg_src be consumer (i.e. the second client) monitoring message.
Optionally, as shown in figure 5, the 2nd API second disappearing of reading specified topic from kafka cluster message queues After breath and sig, the second monitoring message is generated, and the monitoring topic that second monitoring message is sent to kafka clusters is corresponding In message queue.Monitoring module reads the first monitoring message and from the corresponding message queues of monitoring topic of kafka clusters Two monitoring messages, and determine what the first client was sent according to the second monitoring message in first monitoring message and preset time First message is abnormal with the presence or absence of reading.
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Fig. 2 is please referred to, is the flow chart of another message monitoring method provided in an embodiment of the present invention, as shown, this The message monitoring method of inventive embodiments includes the following steps:
S200 receives the first message that the first client is sent;
S201, generates corresponding with the first message the first monitoring message, first monitoring message be used to indicate and The associated transmission information of first message;
The first message is stored in the message queue of kafka clusters, to wait for the second client from the message by S202 The first message is read in queue;
Step of embodiment of the present invention S200~S202 please refers to embodiment step S100~S102 of Fig. 1, no longer superfluous herein It states.
S203, judges whether the second identifier of the second monitoring message matches with the first identifier of the first monitoring message, this Two monitoring messages are the prison generated when second client reads second message in preset time from the message queue Message is controlled, and second monitoring message is used to indicate and the associated reception information of the second message.
In the embodiment of the present invention, the first monitoring message includes the first identifier of first message, is wrapped in the second monitoring message The second identifier of second message is included, is the first message quilt in preset time if the second identifier is identical as first identifier Second client is read.
Optionally, as shown in figure 5, monitoring module is got from the corresponding message queues of monitoring topic of kafka clusters First monitoring message and the second monitoring message, second monitoring message are that the second client is read from message queue in preset time Take the monitoring message generated when second message.
S204, if the second identifier is mismatched with the first identifier, it is determined that it is different that the first message has reading Often.
In the embodiment of the present invention, if the first identifier of the second identifier of the second monitoring message and the first monitoring message is not Match, then illustrates that the first message exists and read exception, because if the first message is read normally, then in specified preset time It is interior, server-side should get carry same mark respectively from producer (the first client) and consumer (the second client End) two monitoring messages.
Optionally, as shown in figure 5, monitoring module receives the monitoring message reported respectively from the first API and the 2nd API, To find abnormal sig.Monitored item can be:Second client does not receive the first visitor within the specified preset time time limit Family end send first message, cause same sig only receive a msg_src be producer monitoring message without receiving Msg_src is the monitoring message of consumer.
S205, if the second identifier is matched with the first identifier, according to the hair of first message in the first monitoring message The receiving time information of second message in temporal information and the second monitoring message is sent, the reception delay of the second client is calculated;
In the embodiment of the present invention, if the first mark that the second identifier that the second monitoring message includes includes with the first monitoring message Know matching, then illustrate that first message reads consumption by the second client, if but the usual time-out that reads is also that system is used as exception One index of processing.Therefore it needs to be supervised according to the transmission time information for the first message for including in the first monitoring message and second The receiving time information for controlling second message in message, calculates reception delay of second client for the first message.
S206, if the reception delay is more than or equal to predetermined threshold value, it is determined that it is different that the first message has reading Often.
In the embodiment of the present invention, if reception delay is more than or equal to predetermined threshold value, it is determined that the first message is also to deposit It is abnormal reading, that is, read time-out.
Further alternative, message monitoring method through the embodiment of the present invention is also that whether can monitor the first client Send it is abnormal, such as it is failed send, when the first client sends first message not successfully, may cause monitoring module that cannot obtain Corresponding first monitoring message of first message is got, the embodiment of the present invention can be obtained by the monitoring message acquired in monitoring module Know whether the first client sends success.
For another example certain message is not handled normally, and reason both may be that the second client receives post-processing exception, May be that the first client is sent not successfully.The embodiment of the present invention can judge whether the message is successfully sent out by monitoring message It send and is properly received, if judging certain successful message receipt by monitoring message, but it is abnormal processing but occur, then is the Processing after two clients receive is abnormal.
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Fig. 3 is please referred to, is the flow diagram of another message monitoring method provided in an embodiment of the present invention, as schemed institute Show, the message monitoring method of the embodiment of the present invention includes the following steps:
S300 receives the first message that the first client is sent;
S301 calculates the first identifier of the first message using preset algorithm;
In the embodiment of the present invention, after server-side receives the first message of the first client transmission, i.e., using pre- imputation Method calculates the first identifier of the first message.As shown in figure 5, when the first API of the first client call sends first message, The first message is calculated signature (sig) by the first API, and signature is the unique mark of the first message, is of the invention real The first identifier of example is applied, computational methods can calculate MD5 values by user's specified function or according to the content of first message.
S302 generates the first monitoring corresponding with the first message according to the first identifier of the first message and disappears Breath;
In the embodiment of the present invention, the first monitoring message is generated according to the first identifier of the first message, which disappears Breath includes the transmission theme etc. of the first identifier, the transmission time information of the first message, the first message.
The first message and the first identifier are encapsulated as the first data packet by S303;
First data packet is stored in the message queue of the kafka clusters by S304.
In the embodiment of the present invention, as shown in figure 5, the sig of first message and first message is sent to kafka by the first API In the corresponding message queues of specified topic of cluster, while the first monitoring message is sent to the prison of kafka clusters by the first API It controls in the corresponding message queues of topic.
S305 is read when receiving the read requests of second client from the message queue of the kafka clusters It includes the second identifier of second message and the second message to take the second data packet, second data packet;
S306 generates the second monitoring message according to the second identifier of the second message.
In the embodiment of the present invention, all message exist in the form of data packet in the message queue of kafka clusters, i.e., should Include the mark of message and the message in data packet.When the second client reads second message from the specified topic of kafka clusters When, obtain the second data packet of the second identifier comprising the second message and the second message, as shown in figure 5, the 2nd API from Second data packet is obtained in the corresponding message queues of specified topic of kafka clusters.
2nd API generates the second monitoring message according to the second identifier of the second message, further alternative, second prison Control message can also include the receiving time information of the second message, reception theme of the second message etc., meanwhile, this second Second monitoring message is sent in the corresponding message queues of monitoring topic of kafka clusters by API, and monitoring module can be from All monitoring messages are obtained in the corresponding message queues of monitoring topic.
S307 determines the first message with the presence or absence of reading according to first monitoring message and the second monitoring message Abnormal, second monitoring message is that second client reads second message in preset time from the message queue The monitoring message of Shi Shengcheng, and second monitoring message is used to indicate and the associated reception information of the second message.
The first message is carried out abnormal mark by S308 if the first message, which exists, reads exception;And/or
If the first message, which exists, reads exception, send a warning message to the user for paying close attention to the first message.
In the embodiment of the present invention, when first message, which exists, reads abnormal, which can be carried out to abnormal mark, Such as the local mode for beating log, and/or, exception is read when first message exists, sends and accuses to the user for paying close attention to the first message Alert information, such as the form of mail alarm inform user.
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Fig. 6 is please referred to, is a kind of structural schematic diagram of message monitoring device provided in an embodiment of the present invention, optionally, this The message monitoring device of inventive embodiments may include the first API, kafka cluster, the 2nd API and monitoring module in Fig. 5, Optionally, the message monitoring device of the embodiment of the present invention can also be by the first API, kafka cluster in Fig. 5, the 2nd API and The integrated chip etc. of monitoring module, the embodiment of the present invention does not limit the specific existence form of message monitoring device.Such as figure Shown, the message monitoring device of the embodiment of the present invention includes:
Receiving module 10, the first message for receiving the transmission of the first client;
The message monitoring method of the embodiment of the present invention can be applied in kafka message queue components, kafka by message with Theme topic is that unit is concluded.The program to give out information to kafka topic is usually known as producer producers, That is the first client of the embodiment of the present invention;Topic will be subscribed and consumes the program of message and be known as consumer consumer, i.e., this Second client of inventive embodiments.
As shown in figure 4, be the system architecture diagram for realizing news release and consumption by kafka in the prior art, due to Forwarding cluster is needed to support multiple and different users while be used, and different kafka message queues use theme (topic) as not With the unique designation of message queue.First client needs to specify a topic, the second client termination when sending a message The specified message for receiving the topic is also required to when receiving message, to complete the exchange of message.At present in the industry, user passes through calling The api interface of kafka completes messaging.
It is specific optional, the original api interface of the first client call kafka, and clothes are sent a message to by network Be engaged in end kafka clusters message queue in, meanwhile, the first client needs specified topic, and kafka clusters are to the second client End provides message, i.e. the second client reads message by reading API from specified topic.It should be noted that client kimonos Business end controls (Transmission Control Protocol, TCP) agreement by transmission and is communicated.Kafka is provided at present Java client, and support is both provided to multilingual.
Due to cannot achieve the monitoring to each message in the existing system framework of Fig. 4, the embodiment of the present invention is Fig. 4's Some improvement are made on the basis of system architecture, Fig. 5 is a kind of system architecture diagram provided in an embodiment of the present invention.The system architecture packet Include the first client, server-side and the second client, the server-side of the embodiment of the present invention may further include the first API, Kafka clusters, monitoring module and the 2nd API, it should be noted that the first API, kafka cluster, monitoring module and Two API can be disposed at least one server.It is understood that the composition form of various components can not in server-side Be defined in Fig. 5, for example, can be by Cheng Yi the first API, kafka cluster, monitoring module and the second API set chip, Message monitoring to the chip as an executive agent completion embodiment of the present invention, as long as the embodiment of the present invention can be realized Message monitoring method is all fallen within the protection scope of the present invention.
Server-side receives the first message that the first client is sent, which can specify a topic, this One message includes that the first client needs the content issued.As shown in figure 5, the first API of the first client call is to server-side Send first message.
First generation module 11, for generating the first monitoring message corresponding with the first message, first monitoring Message is used to indicate and the associated transmission information of the first message;
In the embodiment of the present invention, server-side generates the first monitoring message corresponding with first message, optionally, first prison Control message be used to indicate with the associated transmission information of the first message, such as first monitoring message may include for uniquely mark Know the first identifier of the first message, the transmission time information of the first message, and pay close attention to the contact person of the first message Contact details, the theme etc. which sends are as shown in the table provided in an embodiment of the present invention a kind of optional First monitoring message form schematic diagram:
The format of first monitoring message can be self-defined according to business use demand, is not only limited to Current protocols.First disappears The unique mark of breath is signature sig, which can be calculated according to first message, and computational methods can be by specified Function calculates the acquisition of MD5 values according to the content of first message.
Optionally, as shown in figure 5, the first API receive the first client transmission first message after, calculate this first The sig of message, while the first API generates the first monitoring message corresponding with the first message.
Memory module 12, for the first message to be stored in the message queue of kafka clusters, to wait for the second client The first message is read from the message queue;
In the embodiment of the present invention, which is stored in the message queue of kafka clusters by server-side, kafka clusters Message queue using topic as dividing unit, i.e. topic is used for one queue of unique mark, and server-side is by first message It is specified in the corresponding message queues of topic with this in deposit kafka clusters.Different user can be to the message of kafka clusters Message is written in queue.
Include message topic and monitoring topic, the first monitoring message deposit corresponding with first message in kafka clusters It is monitored in kafka clusters in the corresponding message queues of topic, and all users are stored in kafka to the message of kafka collection pocket transmissions In cluster in the corresponding message queues of message topic, message topic may include multiple topic.
Optionally, as shown in figure 5, first message and sig corresponding with first message are sent to kafka collection by the first API Group specifies in the corresponding message queues of topic, while the first monitoring message corresponding with first message is sent to by the first API In the corresponding message queues of monitoring topic of kafka clusters.
Determining module 13, for according to first monitoring message and the second monitoring message, determining that the first message is No to there is reading exception, second monitoring message is that second client is read in preset time from the message queue The monitoring message generated when second message is taken, and second monitoring message is used to indicate and the associated reception of the second message Information.
In the embodiment of the present invention, the second client, which can be sent to server-side from the reading of specified topic reading message, to be referred to It enables, is specified as shown in figure 5, the 2nd API of the second client call kafka systems is read into the message queue of kafka clusters The message of topic.
When read in the message queue from kafka clusters the second client specify topic message when, according to this second Message generates the second monitoring message, it should be noted that second monitoring message can be risen in advance in first message sending time If in the time, according to the monitoring message that the read second message of the second client generates, which is the preset time The interior read all message of second client.
Second monitoring message is used to indicate and the associated reception information of second message, optionally, second monitoring message It may include the reception theme of the second identifier of the second message, the receiving time information of the second message and the second message Etc., it is a kind of form schematic diagram of optional second monitoring message provided in an embodiment of the present invention as shown in the table:
The format of second monitoring message can be self-defined according to business use demand, is not only limited to Current protocols.Second disappears The second identifier of breath is that signature sig, the sig can be stored in the message queue of kafka clusters with second message packing, when The sig can be obtained when receiving the second message, and generates the second monitoring message.
According to the second monitoring message received in first monitoring message and preset time, determine that the first client is sent out The first message sent is abnormal with the presence or absence of reading, for example, the second client does not receive the first visitor within the preset time time limit The first message that family end is sent, it is producer (i.e. the first client) to cause the message of same sig to only exist a msg_src Monitoring message, without receive msg_src be consumer (i.e. the second client) monitoring message.
Optionally, as shown in figure 5, the 2nd API second disappearing of reading specified topic from kafka cluster message queues After breath and sig, the second monitoring message is generated, and the monitoring topic that second monitoring message is sent to kafka clusters is corresponding In message queue.Monitoring module reads the first monitoring message and from the corresponding message queues of monitoring topic of kafka clusters Two monitoring messages, and determine what the first client was sent according to the second monitoring message in first monitoring message and preset time First message is abnormal with the presence or absence of reading.
It is a kind of structural schematic diagram of determining module provided in an embodiment of the present invention please with reference to Fig. 7, first prison Control message includes the first identifier of the first message;Second monitoring message includes the second identifier of the second message; As shown, the determining module of the embodiment of the present invention may include judging unit 130 and the first determination unit 131:
Judging unit 130, for judging whether the second identifier matches with the first identifier;
In the embodiment of the present invention, the first monitoring message includes the first identifier of first message, is wrapped in the second monitoring message The second identifier of second message is included, is the first message quilt in preset time if the second identifier is identical as first identifier Second client is read.
Optionally, as shown in figure 5, monitoring module is got from the corresponding message queues of monitoring topic of kafka clusters First monitoring message and the second monitoring message, second monitoring message are that the second client is read from message queue in preset time Take the monitoring message generated when second message.
First determination unit 131, if being mismatched for the second identifier and the first identifier, it is determined that described first Message, which exists, reads exception.
In the embodiment of the present invention, if the first identifier of the second identifier of the second monitoring message and the first monitoring message is not Match, then illustrates that the first message exists and read exception, because if the first message is read normally, then in specified preset time It is interior, server-side should get carry same mark respectively from producer (the first client) and consumer (the second client End) two monitoring messages.
Optionally, as shown in figure 5, monitoring module receives the monitoring message reported respectively from the first API and the 2nd API, To find abnormal sig.Monitored item can be:Second client does not receive the first visitor within the specified preset time time limit Family end send first message, cause same sig only receive a msg_src be producer monitoring message without receiving Msg_src is the monitoring message of consumer.
Optionally, first monitoring message further includes the transmission time information of the first message, second monitoring Message further includes the receiving time information of the second message;Determining module 13 can also include that computing unit 132 and second are true Order member 133;
Computing unit 132, if being matched with the first identifier for the second identifier, according to the transmission time information With the receiving time information, the reception delay of second client is calculated;
In the embodiment of the present invention, if the first mark that the second identifier that the second monitoring message includes includes with the first monitoring message Know matching, then illustrate that first message reads consumption by the second client, if but the usual time-out that reads is also that system is used as exception One index of processing.Therefore it needs to be supervised according to the transmission time information for the first message for including in the first monitoring message and second The receiving time information for controlling second message in message, calculates reception delay of second client for the first message.
Second determination unit 133, if being more than or equal to predetermined threshold value for the reception delay, it is determined that described first Message, which exists, reads exception.
In the embodiment of the present invention, if reception delay is more than or equal to predetermined threshold value, it is determined that the first message is also to deposit It is abnormal reading, that is, read time-out.
Further alternative, message monitoring method through the embodiment of the present invention is also that whether can monitor the first client Send it is abnormal, such as it is failed send, when the first client sends first message not successfully, may cause monitoring module that cannot obtain Corresponding first monitoring message of first message is got, the embodiment of the present invention can be obtained by the monitoring message acquired in monitoring module Know whether the first client sends success.
For another example certain message is not handled normally, and reason both may be that the second client receives post-processing exception, May be that the first client is sent not successfully.The embodiment of the present invention can judge whether the message is successfully sent out by monitoring message It send and is properly received, if judging certain successful message receipt by monitoring message, but it is abnormal processing but occur, then is the Processing after two clients receive is abnormal.
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Fig. 8 is please referred to, is the structural schematic diagram of another message monitoring device provided in an embodiment of the present invention, as schemed institute Show, the message monitoring device of the embodiment of the present invention may include:
Receiving module 20, the first message for receiving the transmission of the first client;
Computing module 21 calculates the first identifier of the first message for using preset algorithm;
In the embodiment of the present invention, after server-side receives the first message of the first client transmission, i.e., using pre- imputation Method calculates the first identifier of the first message.As shown in figure 5, when the first API of the first client call sends first message, The first message is calculated signature (sig) by the first API, and signature is the unique mark of the first message, is of the invention real The first identifier of example is applied, computational methods can calculate MD5 values by user's specified function or according to the content of first message.
First generation module 22, for being generated and the first message pair according to the first identifier of the first message The first monitoring message answered;
In the embodiment of the present invention, the first monitoring message is generated according to the first identifier of the first message, which disappears Breath includes the transmission theme etc. of the first identifier, the transmission time information of the first message, the first message.
Memory module 23, for the first message and the first identifier to be encapsulated as the first data packet;By described One data packet is stored in the message queue of the kafka clusters.
In the embodiment of the present invention, as shown in figure 5, the sig of first message and first message is sent to kafka by the first API In the corresponding message queues of specified topic of cluster, while the first monitoring message is sent to the prison of kafka clusters by the first API It controls in the corresponding message queues of topic.
Read module 24, for when receiving the read requests of second client, from disappearing for the kafka clusters The second data packet is read in breath queue, second data packet includes the second identifier of second message and the second message;
Second generation module 25, for generating the second monitoring message according to the second identifier of the second message.
In the embodiment of the present invention, all message exist in the form of data packet in the message queue of kafka clusters, i.e., should Include the mark of message and the message in data packet.When the second client reads second message from the specified topic of kafka clusters When, obtain the second data packet of the second identifier comprising the second message and the second message, as shown in figure 5, the 2nd API from Second data packet is obtained in the corresponding message queues of specified topic of kafka clusters.
2nd API generates the second monitoring message according to the second identifier of the second message, further alternative, second prison Control message can also include the receiving time information of the second message, reception theme of the second message etc., meanwhile, this second Second monitoring message is sent in the corresponding message queues of monitoring topic of kafka clusters by API, and monitoring module can be from All monitoring messages are obtained in the corresponding message queues of monitoring topic.
Determining module 26, for according to first monitoring message and the second monitoring message, determining that the first message is It is no to there is reading exception;
The exception processing module 27 reads exception if existing for the first message, the first message is carried out Abnormal mark;And/or if the first message, which exists, reads exception, alarm letter is sent to the user for paying close attention to the first message Breath.
In the embodiment of the present invention, when first message, which exists, reads abnormal, which can be carried out to abnormal mark, Such as the local mode for beating log, and/or, exception is read when first message exists, sends and accuses to the user for paying close attention to the first message Alert information, such as the form of mail alarm inform user.
The embodiment of the present invention receives the first message that the first client is sent, and generates the first prison corresponding with first message Control message, first monitoring message be used to indicate with the associated transmission information of first message, by the first message be stored in kafka collection In the message queue of group, according to the first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that the monitoring generated when the second client reads second message in preset time from message queue disappears Breath, and second monitoring message is used to indicate and the associated reception information of second message.This mode can be monitored accurately Each message is abnormal with the presence or absence of reading, and improves the accuracy of information consumption.
Fig. 9 is please referred to, for an embodiment of the present invention provides the structural schematic diagrams of another message monitoring device.Such as Fig. 9 institutes Show, the message monitoring device 1000 may include:At least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing this Connection communication between a little components.Wherein, user can be logical with message monitoring device by calling user interface 1003 to realize Letter, optional user interface 1003 may include standard wireline interface and wireless interface.Network interface 1004 may include optionally Standard wireline interface and wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also right and wrong Unstable memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 is optionally gone back It can be at least one storage device for being located remotely from aforementioned processor 1001.It is situated between as shown in figure 9, being stored as a kind of computer May include operating system, network communication module, Subscriber Interface Module SIM and data handling utility journey in the memory 1005 of matter Sequence.
In message monitoring device 1000 shown in Fig. 9, processor 1001 can be used for calling to be stored in memory 1005 Data process application, and specifically execute following operation:
Receive the first message of the first client transmission;
Generate corresponding with the first message the first monitoring message, first monitoring message is used to indicate and described the The transmission information of one message relating;
The first message is stored in the message queue of kafka clusters, to wait for the second client from the message queue It is middle to read the first message;
According to first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, Second monitoring message is that second client is given birth to from the message queue when reading second message in preset time At monitoring message, and second monitoring message is used to indicate and the associated reception information of the second message.
In one embodiment, first monitoring message includes the first identifier of the first message;Second prison Control message includes the second identifier of the second message;
Processor 1001 is being executed according to first monitoring message and the second monitoring message, determines that the first message is When no abnormal in the presence of reading, operated below specific execution:
Judge whether the second identifier matches with the first identifier;
If the second identifier is mismatched with the first identifier, it is determined that the first message, which exists, reads exception.
In one embodiment, first monitoring message further includes the transmission time information of the first message, described Second monitoring message further includes the receiving time information of the second message;
Processor 1001 is being executed according to first monitoring message and the second monitoring message, determines that the first message is When no abnormal in the presence of reading, following operate also is executed:
If the second identifier is matched with the first identifier, believed according to the transmission time information and the receiving time Breath calculates the reception delay of second client;
If the reception delay is more than or equal to predetermined threshold value, it is determined that the first message, which exists, reads exception.
In one embodiment, processor 1001 is also held after executing the first message for receiving the transmission of the first client The following operation of row:
Using preset algorithm, the first identifier of the first message is calculated;
Processor 1001 is specific to execute following behaviour when executing generation the first monitoring message corresponding with the first message Make:
The first monitoring message corresponding with the first message is generated according to the first identifier of the first message;
Processor 1001 is executing and will specifically execute following grasp in the message queue of first message deposit kafka clusters Make:
The first message and the first identifier are encapsulated as the first data packet;
First data packet is stored in the message queue of the kafka clusters.
Processor 1001 is being executed according to first monitoring message and the second monitoring message, determines that the first message is It is no to exist before reading exception, also execute following operation:
When receiving the read requests of second client, is read from the message queue of the kafka clusters Two data packets, second data packet include the second identifier of second message and the second message;
The second monitoring message is generated according to the second identifier of the second message.
Further alternative, processor 1001 is being executed according to first monitoring message and the second monitoring message, is determined After the first message is with the presence or absence of exception is read, following operation is also executed:
If the first message, which exists, reads exception, the first message is subjected to abnormal mark;And/or
If the first message, which exists, reads exception, send a warning message to the user for paying close attention to the first message.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, the present invention can be used in one or more wherein include computer usable program code calculating The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication systems of Internet or other.
The present invention be with reference to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each flow that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer program instructions can be provided To all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case of bright spirit and scope, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute The exemplary illustration for the present invention that attached claim is defined, and be considered as covered in the scope of the invention arbitrary and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of message monitoring method, which is characterized in that including:
Receive the first message of the first client transmission;
The first monitoring message corresponding with the first message is generated, first monitoring message is used to indicate to disappear with described first Cease associated transmission information;
The first message is stored in the message queue of kafka clusters, to wait for that the second client is read from the message queue Take the first message;
According to first monitoring message and the second monitoring message, determine that the first message is abnormal with the presence or absence of reading, it is described Second monitoring message, second client is generated from the message queue when reading second message in preset time Monitoring message, and second monitoring message is used to indicate and the associated reception information of the second message.
2. the method as described in claim 1, which is characterized in that first monitoring message includes the first of the first message Mark;Second monitoring message includes the second identifier of the second message;
It is described to determine that the first message is abnormal with the presence or absence of reading according to first monitoring message and the second monitoring message, Including:
Judge whether the second identifier matches with the first identifier;
If the second identifier is mismatched with the first identifier, it is determined that the first message, which exists, reads exception.
3. method as claimed in claim 2, which is characterized in that first monitoring message further includes the hair of the first message It further includes the receiving time information of the second message to send temporal information, second monitoring message;
It is described to determine that the first message is abnormal with the presence or absence of reading according to first monitoring message and the second monitoring message, Further include:
If the second identifier is matched with the first identifier, according to the transmission time information and the receiving time information, Calculate the reception delay of second client;
If the reception delay is more than or equal to predetermined threshold value, it is determined that the first message, which exists, reads exception.
4. method as claimed in claim 2 or claim 3, which is characterized in that it is described receive the first client send first message it Afterwards, further include:
Using preset algorithm, the first identifier of the first message is calculated;
It is described to generate corresponding with the first message the first monitoring message, including:
The first monitoring message corresponding with the first message is generated according to the first identifier of the first message;
It is described to be stored in the first message in the message queue of kafka clusters, including:
The first message and the first identifier are encapsulated as the first data packet;
First data packet is stored in the message queue of the kafka clusters.
5. method as claimed in claim 4, which is characterized in that described to be disappeared according to first monitoring message and the second monitoring Breath determines that the first message with the presence or absence of before reading exception, further includes:
When receiving the read requests of second client, the second number is read from the message queue of the kafka clusters According to packet, second data packet includes the second identifier of second message and the second message;
The second monitoring message is generated according to the second identifier of the second message.
6. the method as described in claim 1-3 any one, which is characterized in that the method further includes:
If the first message, which exists, reads exception, the first message is subjected to abnormal mark;And/or
If the first message, which exists, reads exception, send a warning message to the user for paying close attention to the first message.
7. a kind of message monitoring device, which is characterized in that including:
Receiving module, the first message for receiving the transmission of the first client;
First generation module, for generating the first monitoring message corresponding with the first message, first monitoring message is used In instruction and the associated transmission information of the first message;
Memory module, for the first message to be stored in the message queue of kafka clusters, to wait for the second client from described The first message is read in message queue;
Determining module, for according to first monitoring message and the second monitoring message, determining that the first message whether there is Exception is read, second monitoring message is that second client reads second in preset time from the message queue The monitoring message generated when message, and second monitoring message is used to indicate and the associated reception information of the second message.
8. device as claimed in claim 7, which is characterized in that first monitoring message includes the first of the first message Mark;Second monitoring message includes the second identifier of the second message;The determining module includes:
Judging unit, for judging whether the second identifier matches with the first identifier;
First determination unit, if being mismatched for the second identifier and the first identifier, it is determined that the first message is deposited It is abnormal reading.
9. device as claimed in claim 8, which is characterized in that first monitoring message further includes the hair of the first message It further includes the receiving time information of the second message to send temporal information, second monitoring message;Determining module further includes:
Computing unit, if being matched with the first identifier for the second identifier, according to the transmission time information and described Receiving time information calculates the reception delay of second client;
Second determination unit, if being more than or equal to predetermined threshold value for the reception delay, it is determined that the first message is deposited It is abnormal reading.
10. device as claimed in claim 8 or 9, which is characterized in that described device further includes:
Computing module calculates the first identifier of the first message for using preset algorithm;
First generation module is specifically used for being generated and the first message according to the first identifier of the first message Corresponding first monitoring message;
The memory module is specifically used for the first message and the first identifier being encapsulated as the first data packet;By described One data packet is stored in the message queue of the kafka clusters.
11. device as claimed in claim 10, which is characterized in that described device further includes:
Read module, for when receiving the read requests of second client, from the message queue of the kafka clusters The second data packet of middle reading, second data packet includes the second identifier of second message and the second message;
Second generation module, for generating the second monitoring message according to the second identifier of the second message.
12. the device as described in claim 7-9 any one, which is characterized in that described device further includes exception processing module;
If the exception processing module, which is specifically used for the first message, has reading exception, the first message is carried out abnormal Mark;And/or it if the first message, which exists, reads exception, sends a warning message to the user for paying close attention to the first message.
CN201710076985.XA 2017-02-13 2017-02-13 Message monitoring method and device Active CN108427615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076985.XA CN108427615B (en) 2017-02-13 2017-02-13 Message monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076985.XA CN108427615B (en) 2017-02-13 2017-02-13 Message monitoring method and device

Publications (2)

Publication Number Publication Date
CN108427615A true CN108427615A (en) 2018-08-21
CN108427615B CN108427615B (en) 2020-11-27

Family

ID=63155069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076985.XA Active CN108427615B (en) 2017-02-13 2017-02-13 Message monitoring method and device

Country Status (1)

Country Link
CN (1) CN108427615B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647416A (en) * 2019-08-30 2020-01-03 福建天泉教育科技有限公司 Message queue tracking and recording method and system
CN113238879A (en) * 2021-05-18 2021-08-10 挂号网(杭州)科技有限公司 Message transmission method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243002A (en) * 2015-08-28 2016-01-13 浪潮软件股份有限公司 Message middleware monitoring method and system
CN105868075A (en) * 2016-03-31 2016-08-17 浪潮通信信息系统有限公司 System and method for monitoring and analyzing great deal of logs in real time
CN105975384A (en) * 2016-04-28 2016-09-28 北京小米移动软件有限公司 Distributed process monitoring method and apparatus
US20170249205A1 (en) * 2016-02-29 2017-08-31 International Business Machines Corporation Issue escalation by management unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243002A (en) * 2015-08-28 2016-01-13 浪潮软件股份有限公司 Message middleware monitoring method and system
US20170249205A1 (en) * 2016-02-29 2017-08-31 International Business Machines Corporation Issue escalation by management unit
CN105868075A (en) * 2016-03-31 2016-08-17 浪潮通信信息系统有限公司 System and method for monitoring and analyzing great deal of logs in real time
CN105975384A (en) * 2016-04-28 2016-09-28 北京小米移动软件有限公司 Distributed process monitoring method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐超: "大型互联网公司分布式消息系统的设计与实施", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647416A (en) * 2019-08-30 2020-01-03 福建天泉教育科技有限公司 Message queue tracking and recording method and system
CN110647416B (en) * 2019-08-30 2023-03-24 福建天泉教育科技有限公司 Message queue tracking and recording method and system
CN113238879A (en) * 2021-05-18 2021-08-10 挂号网(杭州)科技有限公司 Message transmission method, device and system

Also Published As

Publication number Publication date
CN108427615B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN107426022B (en) Security event monitoring method and device, electronic equipment and storage medium
CN103067884B (en) A kind of processing method of warning message and device
CN103929334A (en) Network abnormity notification method and apparatus
CN113067882A (en) Message processing method and device, electronic equipment and medium
CN101710856B (en) Method and equipment for detection processing of loopback of aggregation link
CN107800663B (en) Method and device for detecting flow offline file
CN108491301A (en) Electronic device, the abnormity early warning method based on redis and storage medium
CN104967537A (en) Alarm information pushing method and device
CN108631955A (en) It is a kind of to ensure that message sends reachable mthods, systems and devices
CN109634813A (en) Electronic device, cloud platform exception confirmation method and storage medium
CN105162823B (en) A kind of virtual machine management method and device
CN111130821B (en) Power failure alarm method, processing method and device
CN108427615A (en) A kind of message monitoring method and device
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN110333916A (en) Request message processing method, device, computer system and readable storage medium storing program for executing
CN112769639B (en) Method and device for parallel issuing configuration information
CN107995199A (en) The port speed constraint method and device of the network equipment
CN109634806A (en) Electronic device, server cluster monitoring method and storage medium
CN114301812A (en) Method, device, equipment and storage medium for monitoring message processing result
CN108449252B (en) Dump method and device for access log
CN112929197A (en) Network communication method, device, equipment and storage medium
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN112711517A (en) Server performance monitoring method and device, storage medium and terminal
CN113015115B (en) Charging message processing method, device, charging system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant