CN115150031B - Distributed system message response method and device based on distributed message - Google Patents

Distributed system message response method and device based on distributed message Download PDF

Info

Publication number
CN115150031B
CN115150031B CN202210695543.4A CN202210695543A CN115150031B CN 115150031 B CN115150031 B CN 115150031B CN 202210695543 A CN202210695543 A CN 202210695543A CN 115150031 B CN115150031 B CN 115150031B
Authority
CN
China
Prior art keywords
processing
message
response
clusters
result
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.)
Active
Application number
CN202210695543.4A
Other languages
Chinese (zh)
Other versions
CN115150031A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210695543.4A priority Critical patent/CN115150031B/en
Publication of CN115150031A publication Critical patent/CN115150031A/en
Application granted granted Critical
Publication of CN115150031B publication Critical patent/CN115150031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Abstract

The invention provides a distributed system message response method and a device based on distributed messages, wherein the method comprises the following steps: judging whether the processing reply response of the target processing cluster is overtime or not; if yes, sending a query message to all processing clusters; determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; all processing clusters include the target processing cluster. The optimized distributed system message response method solves the problem that a message sender and a message receiver can influence the normal operation of a system when network communication is interrupted or abnormal, and improves the stability and emergency capability of the distributed system under the condition of poor network conditions through the optimized distributed message queue information transmission method.

Description

Distributed system message response method and device based on distributed message
Technical Field
The application belongs to the technical field of distributed systems, and particularly relates to a distributed system message response method and device based on distributed messages.
Background
In a distributed system, different nodes may communicate information through a distributed message queue (e.g., activeMQ, KAFKA, etc.). The distributed message queue is often used for realizing the processing scenes such as functional decoupling, asynchronous processing, peak clipping and the like.
In general, in the application scenario of message queues, a sender (sender) of a message sends a Request message, where sender is a message that is not concerned and cannot know a receiver (also called a consumer) of the message, whether the message has been received, whether the message has been processed, and a final result of the message. (whether or not a message has been received, whether or not a message has been processed, and the final result of processing the message is a Response type message)
sender needs to know whether the receiver has received the message, whether the receiver has processed the message, the final result of processing the message, and so on, and needs to communicate with each other additionally. Such as: after receiving the message, the receiver replies a Response class message to the sender. Or the receiver informs the sender, the database update and the like through service call, so that the sender perceives the conditions of receiving the message, processing the result and the like. Up to this point, sender knows the processing situation.
In extreme cases, it is assumed that the network communication between sender and receiver is interrupted and cannot be directly contacted. sender, in turn, can affect the normal operation of the system while waiting for a Response class message from receiver.
Disclosure of Invention
The application provides a distributed system message Response method and device based on distributed messages, which at least solve the problem that the normal operation of a system is affected when a sender waits for a Response type message of a receiver once network communication between the sender and the receiver is interrupted, and the sender cannot be contacted.
According to one aspect of the present application, there is provided a distributed system message response method based on a distributed message, including:
judging whether the processing reply response of the target processing cluster is overtime or not;
if yes, sending a query message to all processing clusters;
determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; all processing clusters include the target processing cluster.
In one embodiment, determining whether the processing reply response of the target processing cluster is timeout includes:
sending processing information to all processing clusters and receiving processing reply responses returned by target processing clusters in the processing clusters;
judging whether the received processing reply response time exceeds a preset value, and if so, overtime.
In an embodiment, when a response fed back by the target processing cluster is received, determining a processing result of the message in a corresponding manner according to the responses fed back by all the processing clusters includes:
determining the response of the target processing cluster feedback from the responses of all the processing clusters feedback;
and taking the response fed back by the target processing cluster as a processing result of the message.
In an embodiment, when responses of other processing clusters are received and responses of target processing clusters are not received, determining a processing result of the message in a corresponding manner according to the responses of all the processing clusters, including:
analyzing the feedback response of other processing clusters to obtain an analysis result;
and judging the processing result of the message from the analysis result.
In one embodiment, determining a processing result of the message from the parsing result includes:
classifying the analysis result according to whether the processing result of the message is successful or not;
and when the number of successful processing results exceeds a preset threshold value, the message is considered to be successfully processed.
In an embodiment, when the number of received responses fed back by the processing clusters does not reach the standard, determining a processing result of the message according to the responses fed back by all the processing clusters in a corresponding manner includes:
and (5) re-issuing the query message to all the processing clusters at preset intervals.
In an embodiment, the distributed system message response method based on the distributed message further comprises:
sending a message to be processed to all the processing clusters, wherein the message to be processed comprises a designated target processing cluster;
and receiving a response returned by the target processing cluster, wherein the response comprises a processing result of the original message, the sender and the original message of the response.
According to another aspect of the present application, there is provided a distributed system message response apparatus based on a distributed message, including:
the judging response unit is used for judging whether the processing reply response of the target processing cluster is overtime or not;
a query information sending unit, configured to send a query message to all processing clusters if the query information is sent by the processing clusters;
the processing result determining unit is used for determining the processing result of the message in a corresponding mode according to the responses fed back by all the processing clusters; all processing clusters include the target processing cluster.
In one embodiment, the judgment responding unit includes:
the group sending module is used for sending processing information to all the processing clusters and receiving processing reply responses returned by target processing clusters in the processing clusters;
and the overtime judging module is used for judging whether the received processing reply response time exceeds a preset value, and if so, the overtime judging module overtakes.
In an embodiment, when receiving a response fed back by the target processing cluster, the processing result determining unit includes:
the target processing cluster feedback module is used for determining the response of the target processing cluster feedback from the responses of all the processing cluster feedback;
and the first result determining module is used for taking the response fed back by the target processing cluster as the processing result of the message.
In an embodiment, when a response of the feedback of the other processing cluster is received and a response of the feedback of the target processing cluster is not received, the processing result determining unit includes:
the analysis module is used for analyzing the feedback response of other processing clusters to obtain an analysis result;
and the second result determining module is used for judging the processing result of the message from the analysis result.
In one embodiment, the second result determination module includes:
the classification module is used for classifying the analysis result according to whether the processing result of the message is successful or not;
and the evaluation module is used for considering that the message is successfully processed when the number of the successful processing results exceeds a preset threshold value.
In an embodiment, when the number of received responses fed back by the processing cluster does not reach the standard, the processing result determining unit includes:
and the retransmission module is used for retransmitting the query message to all the processing clusters at preset intervals.
In an embodiment, the distributed system message response device based on the distributed message further comprises:
the message group sending module is used for sending messages to be processed to all the processing clusters, wherein the messages to be processed comprise designated target processing clusters;
the response receiving module is used for receiving a response returned by the target processing cluster, wherein the response comprises a processing result of the original message, a sender and the original message of the response.
The optimized distributed system message response method solves the problem that a message sender and a message receiver can influence the normal operation of a system when network communication is interrupted or abnormal, and improves the stability and emergency capability of the distributed system under the condition of poor network conditions through the optimized distributed message queue information transmission method.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a block diagram of a distributed system message response method based on a distributed message.
FIG. 2 is a diagram illustrating a determination of whether a processing reply response of a target processing cluster has timed out.
Fig. 3 is a diagram showing the processing result of determining a message in a corresponding manner according to the responses fed back by all processing clusters.
Fig. 4 shows a processing result of determining a message according to responses fed back by all processing clusters in a corresponding manner in another case.
Fig. 5 is a processing result of judging a message from the analysis result.
Fig. 6 is a diagram of a distributed system message response method based on a distributed message in another embodiment.
Fig. 7 is an explanatory diagram taking the parameter modification system as an example.
Fig. 8 is an embodiment of the present application.
Fig. 9 to 11 are three different embodiments of the present application, respectively.
Fig. 12 is a schematic diagram of a distributed system message response device based on a distributed message.
Fig. 13 is a block diagram of a structure of a judgment response unit in the embodiment of the present application.
Fig. 14 is a configuration of a processing result determination unit in the embodiment of the present application.
Fig. 15 is another structure of the processing result determination unit in the embodiment of the present application.
Fig. 16 is a structure of a second result determination module in the embodiment of the present application.
Fig. 17 is a specific implementation of an electronic device in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problems in the background technology, the application provides an optimized method for transmitting information through a distributed message queue of a distributed system, solves the problem that the normal operation of the system is affected when the network communication of a sender and a receiver is interrupted or abnormal, and improves the stability and emergency capability of the distributed system.
As shown in fig. 1, a distributed system message response method based on a distributed message includes:
s101: and judging whether the processing reply response of the target processing cluster is overtime.
S102: if so, a query message is sent to all processing clusters.
S103: determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; all processing clusters include the target processing cluster.
In a specific embodiment, a parameter modification system is taken as an example to illustrate, as shown in fig. 7, a parameter control cluster a, parameter clusters B, C, D, E, etc., where the clusters are interconnected by a network, and a black solid line represents a network connection. Parameter control cluster a, parameter clusters B, C, D, E, etc. Suppose a needs to inform cluster B of the modification of a particular parameter. The A pushes a request1 type parameter modification message, the request1 message may specify any one of the parameter cluster treatments, assuming that the current message content specifies a treatment cluster as B. B. C, D, E can receive the request1 type message, C, D, E cluster can record the message, and judge whether own processing is needed according to the content of the message. But only B is recorded and processed.
As shown in fig. 8, a waits for a post-consumer reply message after sending. If the B receives the message, processes the message successfully or fails, and returns a response1 type response message (the message content mainly includes the sender, the original message of the response, the original message processing condition, etc.), C, D, E also receives the message, updates the record registered when the cluster receives the request1 message, and updates the record according to the response 1. And A receives the response1 type response message and confirms the processing condition of the request1 message. The parameter issuing process is closed-loop.
In one embodiment, determining whether the processing reply response of the target processing cluster is timeout, as shown in fig. 2, includes:
s201: and sending processing information to all the processing clusters and receiving processing reply responses returned by the target processing clusters in the processing clusters.
S202: judging whether the received processing reply response time exceeds a preset value, and if so, overtime.
In an embodiment, when a response of the target processing cluster feedback is received, determining a processing result of the message in a corresponding manner according to the responses of all the processing clusters feedback, as shown in fig. 3, includes:
s301: the response of the target processing cluster feedback is determined from the responses of all processing cluster feedback.
S302: and taking the response fed back by the target processing cluster as a processing result of the message.
In one embodiment, as shown in fig. 9, if a issues a parameter, no response is received from B within a specified waiting time (the waiting time can be customized). The message request2 type message (which can be regarded as query message, the message content mainly comprises the original message and the processing party of the original message) is issued, and the processing condition of the request1 type is confirmed. B, C, D, E can receive the request2 type message, and after receiving the request2 type message, B, C, D, E replies result1 type message according to the self-registered message record processing condition. The A cluster receives the result1 type messages of B, C, D and E, and finally confirms the processing result of the request1 message based on the result1 type message of the processing party B of the request1 type message.
In an embodiment, when responses of other processing clusters are received and responses of the target processing cluster are not received, determining a processing result of the message according to the responses of all the processing clusters in a corresponding manner, as shown in fig. 4, including:
s401: and analyzing the feedback response of other processing clusters to obtain an analysis result.
S402: and judging the processing result of the message from the analysis result.
In a specific embodiment, as shown in fig. 10, when the result1 type message of B is not received, the result1 type message of C, D, E is a success or failure, and when both success and failure occur, the request1 message is considered to be successfully processed by B when the successful result1 type message is greater than a certain set threshold. ( If the set threshold is 0.6, when the result1 type message of C is that the B is not processed or the processing fails, and the result1 type message of D, E is that the B is successful, the B cluster is considered to be a successful modification parameter, and the specific threshold can be confirmed by the actual condition of the system. If the result is set to 1, if all result type 1 messages are required to be successful, the B processing can be considered to be successful )
In one embodiment, determining the processing result of the message from the parsing result, as shown in fig. 5, includes:
s501: and classifying the analysis result according to whether the processing result of the message is successful or not.
S502: and when the number of successful processing results exceeds a preset threshold value, the message is considered to be successfully processed.
In a specific embodiment, as shown in fig. 11, if the B message does not receive a result1 type message of B, C, D, E or does not receive a result1 message of more than X parameter clusters (X is at least the number of received result1 messages of the a cluster, and may be customized according to the system condition).
In an embodiment, when the number of received responses fed back by the processing clusters does not reach the standard, determining a processing result of the message according to the responses fed back by all the processing clusters in a corresponding manner includes:
and (5) re-issuing the query message to all the processing clusters at preset intervals.
In an embodiment, as shown in fig. 6, the distributed system message response method based on the distributed message further includes:
s601: and sending the message to be processed to all the processing clusters, wherein the message to be processed comprises the designated target processing cluster.
S602: and receiving a response returned by the target processing cluster, wherein the response comprises a processing result of the original message, the sender and the original message of the response.
Based on the same inventive concept, the embodiments of the present application also provide a distributed system message response device based on a distributed message, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Because the principle of solving the problem of the distributed system message response device based on the distributed message is similar to that of the distributed system message response method based on the distributed message, the implementation of the distributed system message response device based on the distributed message can be referred to the implementation of the distributed system message response method based on the distributed message, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
According to another aspect of the present application, there is provided a distributed system message response apparatus based on a distributed message, as shown in fig. 12, including:
a judgment response unit 1201, configured to judge whether a processing reply response of the target processing cluster is overtime;
a query information sending unit 1202, configured to send a query message to all processing clusters if yes;
a processing result determining unit 1203, configured to determine a processing result of the message in a corresponding manner according to the responses fed back by all the processing clusters; all processing clusters include the target processing cluster.
In one embodiment, as shown in fig. 13, the judgment responding unit 1201 includes:
the group sending module 1301 is configured to send processing messages to all processing clusters and receive processing reply responses returned by a target processing cluster in the processing clusters;
the timeout determination module 1302 is configured to determine whether the time of the received processing reply response exceeds a preset value, and if so, timeout.
In an embodiment, as shown in fig. 14, when receiving a response of the target processing cluster feedback, the processing result determining unit 1203 includes:
a target processing cluster feedback module 1401, configured to determine a response of the target processing cluster feedback from the responses of all the processing cluster feedback;
a first result determining module 1402, configured to take a response fed back by the target processing cluster as a processing result of the message.
In an embodiment, when a response of other processing cluster feedback is received and a response of the target processing cluster feedback is not received, as shown in fig. 15, the processing result determining unit 1203 includes:
the parsing module 1501 is configured to parse the responses fed back by the other processing clusters to obtain parsing results;
a second result determining module 1502 is configured to determine a processing result of the message from the analysis result.
In one embodiment, as shown in fig. 16, the second result determining module 1502 includes:
a classification module 1601, configured to classify an analysis result according to whether the processing result of the message is successful;
and the evaluation module 1602 is configured to consider the message to be successfully processed when the number of successful processing results exceeds a preset threshold.
In an embodiment, when the number of received responses fed back by the processing cluster does not reach the standard, the processing result determining unit includes:
and the retransmission module is used for retransmitting the query message to all the processing clusters at preset intervals.
In an embodiment, the distributed system message response device based on the distributed message further comprises:
the message group sending module is used for sending messages to be processed to all the processing clusters, wherein the messages to be processed comprise designated target processing clusters;
the response receiving module is used for receiving a response returned by the target processing cluster, wherein the response comprises a processing result of the original message, a sender and the original message of the response.
The optimized distributed system message response method solves the problem that a message sender and a message receiver can influence the normal operation of a system when network communication is interrupted or abnormal, and improves the stability and emergency capability of the distributed system under the condition of poor network conditions through the optimized distributed message queue information transmission method.
The embodiment of the present application further provides a specific implementation manner of an electronic device capable of implementing all the steps in the method in the foregoing embodiment, and referring to fig. 17, the electronic device specifically includes the following:
a processor 1701, a memory 1702, a communication interface (Communications Interface) 1703, a bus 1704 and a non-volatile storage 1705;
wherein the processor 1701, the memory 1702, and the communication interface 1703 complete communication with each other through the bus 1704;
the processor 1701 is configured to invoke the computer program in the memory 1702 and the nonvolatile memory 1705, where the processor executes the computer program to implement all the steps in the method in the foregoing embodiment, for example, the processor executes the computer program to implement the following steps:
s101: and judging whether the processing reply response of the target processing cluster is overtime.
S102: if so, a query message is sent to all processing clusters.
S103: determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; all processing clusters include the target processing cluster.
The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments, the computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements all the steps of the method in the above embodiments, for example, the processor implements the following steps when executing the computer program:
s101: and judging whether the processing reply response of the target processing cluster is overtime.
S102: if so, a query message is sent to all processing clusters.
S103: determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; all processing clusters include the target processing cluster.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a hardware+program class embodiment, the description is relatively simple, as it is substantially similar to the method embodiment, as relevant see the partial description of the method embodiment. Although the present description provides method operational steps as described in the examples or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented in an actual device or end product, the instructions may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment) as illustrated by the embodiments or by the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when implementing the embodiments of the present disclosure, the functions of each module may be implemented in the same or multiple pieces of software and/or hardware, or a module that implements the same function may be implemented by multiple sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction. The foregoing is merely an example of an embodiment of the present disclosure and is not intended to limit the embodiment of the present disclosure. Various modifications and variations of the illustrative embodiments will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the embodiments of the present specification, should be included in the scope of the claims of the embodiments of the present specification.

Claims (7)

1. A distributed system message response method based on distributed messages, comprising:
judging whether the processing reply response of the target processing cluster is overtime or not;
if yes, sending a query message to all processing clusters;
determining the processing result of the message in a corresponding mode according to the feedback responses of all the processing clusters; the target processing clusters are included in all the processing clusters;
when receiving the response fed back by the target processing clusters, determining the processing result of the message in a corresponding mode according to the response fed back by all the processing clusters, wherein the method comprises the following steps:
determining the response of the target processing cluster feedback from the responses of all the processing clusters feedback;
taking the response fed back by the target processing cluster as a processing result of the message;
when responses of other processing cluster feedback are received and responses of target processing cluster feedback are not received, determining a processing result of the message in a corresponding mode according to the responses of all processing cluster feedback, including:
analyzing the feedback response of other processing clusters to obtain an analysis result;
judging a processing result of the message from the analysis result;
the judging the processing result of the message from the analysis result comprises the following steps:
classifying the analysis result according to whether the processing result of the message is successful or not;
and when the number of successful processing results exceeds a preset threshold value, the message is considered to be successfully processed.
2. The distributed system message response method based on the distributed message according to claim 1, wherein the determining whether the processing reply response of the target processing cluster is timeout includes:
sending processing information to all processing clusters and receiving processing reply responses returned by target processing clusters in the processing clusters;
judging whether the received processing reply response time exceeds a preset value, and if so, overtime.
3. The distributed system message response method based on the distributed message according to claim 1, wherein when the number of received responses fed back by the processing clusters does not reach the standard, the determining the processing result of the message according to the responses fed back by all the processing clusters in a corresponding manner includes:
and (5) re-issuing the query message to all the processing clusters at preset intervals.
4. The distributed system message response method based on the distributed message according to claim 1, further comprising:
sending a message to be processed to all the processing clusters, wherein the message to be processed comprises a designated target processing cluster;
and receiving a response returned by the target processing cluster, wherein the response comprises a processing result of the original message, the sender and the original message of the response.
5. A distributed system message response device based on distributed messages, comprising:
the judging response unit is used for judging whether the processing reply response of the target processing cluster is overtime or not;
a query information sending unit, configured to send a query message to all processing clusters if the query information is sent by the processing clusters;
the processing result determining unit is used for determining the processing result of the message in a corresponding mode according to the responses fed back by all the processing clusters; the target processing clusters are included in all the processing clusters; when receiving the response fed back by the target processing clusters, determining the processing result of the message in a corresponding mode according to the response fed back by all the processing clusters, wherein the method comprises the following steps:
determining the response of the target processing cluster feedback from the responses of all the processing clusters feedback;
taking the response fed back by the target processing cluster as a processing result of the message;
when responses of other processing cluster feedback are received and responses of target processing cluster feedback are not received, determining a processing result of the message in a corresponding mode according to the responses of all processing cluster feedback, including:
analyzing the feedback response of other processing clusters to obtain an analysis result;
judging a processing result of the message from the analysis result;
the judging the processing result of the message from the analysis result comprises the following steps:
classifying the analysis result according to whether the processing result of the message is successful or not;
and when the number of successful processing results exceeds a preset threshold value, the message is considered to be successfully processed.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the distributed message based distributed system message response method of any of claims 1 to 4 when the program is executed.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the steps of the distributed message based distributed system message response method of any of claims 1 to 4.
CN202210695543.4A 2022-06-20 2022-06-20 Distributed system message response method and device based on distributed message Active CN115150031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210695543.4A CN115150031B (en) 2022-06-20 2022-06-20 Distributed system message response method and device based on distributed message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210695543.4A CN115150031B (en) 2022-06-20 2022-06-20 Distributed system message response method and device based on distributed message

Publications (2)

Publication Number Publication Date
CN115150031A CN115150031A (en) 2022-10-04
CN115150031B true CN115150031B (en) 2024-02-27

Family

ID=83409029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210695543.4A Active CN115150031B (en) 2022-06-20 2022-06-20 Distributed system message response method and device based on distributed message

Country Status (1)

Country Link
CN (1) CN115150031B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038309A (en) * 2013-03-07 2014-09-10 上海海尔集成电路有限公司 Simulation system communication method and simulation system
CN104753817A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Local analogy method and local analogy system for cloud computing message queue service
CN106453633A (en) * 2016-11-10 2017-02-22 郑州云海信息技术有限公司 Communication method for multiple nodes in non-stable communication link
CN110955523A (en) * 2019-11-22 2020-04-03 中国银联股份有限公司 Service processing method and device
CN114595071A (en) * 2022-03-07 2022-06-07 华泰证券股份有限公司 Security dealer core transaction data synchronization system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038309A (en) * 2013-03-07 2014-09-10 上海海尔集成电路有限公司 Simulation system communication method and simulation system
CN104753817A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Local analogy method and local analogy system for cloud computing message queue service
CN106453633A (en) * 2016-11-10 2017-02-22 郑州云海信息技术有限公司 Communication method for multiple nodes in non-stable communication link
CN110955523A (en) * 2019-11-22 2020-04-03 中国银联股份有限公司 Service processing method and device
CN114595071A (en) * 2022-03-07 2022-06-07 华泰证券股份有限公司 Security dealer core transaction data synchronization system and method

Also Published As

Publication number Publication date
CN115150031A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN110233881B (en) Service request processing method, device, equipment and storage medium
CN110808948B (en) Remote procedure calling method, device and system
CN113391979A (en) Processing method, equipment and system for monitoring data display and storage medium
KR101416280B1 (en) Event handling system and method
KR20070077449A (en) Terminal and method for pefforming device managemnt scheduled based on treshold thereof
CN103677988A (en) Multi-process communication method and system for software system
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN112329001A (en) Data distribution method, system, terminal and medium between internal network and external network
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
US20070050447A1 (en) Method and device arrangement for managing a client/server environment
CN111124717A (en) Message delivery method, system and computer storage medium
CN115150031B (en) Distributed system message response method and device based on distributed message
CN114338584B (en) Message withdraw method and message transmission system
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN109144919B (en) Interface switching method and device
CN112437146B (en) Equipment state synchronization method, device and system
CN111338573B (en) Terminal data management method and system, server and communication terminal
CN107342942B (en) Information transmission method and device for multi-node controller cluster
CN112995095A (en) Data processing method, device and computer readable storage medium
CN112055058A (en) Data storage method and device and computer readable storage medium
CN111556043A (en) Message processing method, device, system, equipment and readable storage medium
CN114189384B (en) Service processing method, device, equipment and storage medium
CN113806056B (en) Timed task processing method, device, computer equipment and storage medium
CN108173910B (en) Method and system for managing application
CN110460586B (en) In-vehicle node communication method, device, equipment 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