CN113965624A - Method for processing message, message caching middleware and service system - Google Patents
Method for processing message, message caching middleware and service system Download PDFInfo
- Publication number
- CN113965624A CN113965624A CN202010603070.1A CN202010603070A CN113965624A CN 113965624 A CN113965624 A CN 113965624A CN 202010603070 A CN202010603070 A CN 202010603070A CN 113965624 A CN113965624 A CN 113965624A
- Authority
- CN
- China
- Prior art keywords
- message
- intermediate processing
- processing system
- middleware
- messages
- 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.)
- Withdrawn
Links
- 238000012545 processing Methods 0.000 title claims abstract description 211
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000011084 recovery Methods 0.000 claims abstract description 42
- 238000004590 computer program Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 21
- 238000009825 accumulation Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
Abstract
The disclosure provides a method for message processing, message caching middleware and a service system. The method comprises the following steps: under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends alarm prompt information to the message using system and the message caching middleware; after receiving the warning prompt message, the message caching middleware acquires and stores the message from the message intermediate processing system; after the message using system is recovered to normal, sending recovery notification information to the message caching middleware; and after receiving the recovery notification information, the message caching middleware stops acquiring the message from the message intermediate processing system and sends the stored message to the message using system. The method and the device can avoid the loss of unprocessed messages in the message queue of the message intermediate processing system as much as possible, thereby improving the integrity and reliability of data communication of the service system.
Description
Technical Field
The present disclosure relates to the field of message processing, and in particular, to a method, a message caching middleware, and a service system for message processing.
Background
The default message retaining strategy of the message intermediate processing system is divided into a time dimension and a space dimension, namely after unconsumed messages are accumulated for a certain time or unconsumed messages exceed a certain space in a cache, the message intermediate processing system deletes the messages from the message queue according to the cache sequence.
Disclosure of Invention
The inventor of the present disclosure finds that when the message using system generates an exception and cannot acquire and process a message from the message intermediate processing system, or the processing speed is lower than the message issuing speed of the message generating system, the message intermediate processing system may generate a message accumulation phenomenon. After a certain time of accumulation, the message intermediate processing system can delete these unconsumed messages autonomously, which causes the problem of message loss in the message intermediate processing system.
In view of this, the embodiments of the present disclosure provide a method for message processing to avoid the loss of unprocessed messages in the message queue of the message intermediate processing system as much as possible.
According to an aspect of the present disclosure, there is provided a method for message processing, including: under the condition that the number of messages which are not processed by a message using system in a message intermediate processing system exceeds a threshold value, the message intermediate processing system sends alarm prompt information to the message using system and a message cache middleware; after receiving the warning prompt message, the message caching middleware acquires and stores the message from the message intermediate processing system; after the message using system is recovered to normal, sending recovery notification information to the message caching middleware; and after receiving the recovery notification information, the message caching middleware stops acquiring messages from the message intermediate processing system and sends the stored messages to the message using system.
In some embodiments, the method further comprises: before the message intermediate processing system sends the alarm prompt information, the message generating system sends the generated message to the message intermediate processing system; the message using system acquires the message from the message intermediate processing system and processes the acquired message; when the message using system is abnormal, the message using system does not acquire and process the message from the message intermediate processing system any more, or the speed of the message using system for processing the message is less than the speed of the message generating system for sending the message to the message intermediate processing system.
In some embodiments, the method further comprises: and after the message using system is recovered to be normal, continuing to acquire the message from the message intermediate processing system, or enabling the speed of the message using system for processing the message to be greater than or equal to the speed of the message generating system for sending the message to the message intermediate processing system.
In some embodiments, the method further comprises: before the message intermediate processing system sends the alarm prompt information, deploying the message cache middleware between the message intermediate processing system and the message using system.
According to another aspect of the present disclosure, there is provided a method for message processing, including: after receiving alarm prompt information sent by a message intermediate processing system, acquiring and storing a message from the message intermediate processing system; after receiving the recovery notification information sent by the message using system, stopping obtaining the message from the message intermediate processing system, and sending the stored message to the message using system; wherein, under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends out the alarm prompt message; and the message using system sends the recovery notification information after recovering to normal.
According to another aspect of the present disclosure, there is provided a message caching middleware, including: the message processing system comprises a receiving unit, a message processing unit and a message processing unit, wherein the receiving unit is used for acquiring a message from the message intermediate processing system after receiving alarm prompt information sent by the message intermediate processing system and stopping acquiring the message from the message intermediate processing system after receiving recovery notification information sent by the message using system; the storage unit is used for storing the information acquired from the information intermediate processing system; and a sending unit, configured to send the stored message to the message using system after receiving the recovery notification information; wherein, under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends the alarm prompt information to the message using system and a message cache middleware; and after the message using system is recovered to be normal, sending the recovery notification information to the message caching middleware.
According to another aspect of the present disclosure, there is provided a message caching middleware, including: a memory; and a processor coupled to the memory, the processor configured to perform the method as previously described based on instructions stored in the memory.
According to another aspect of the present disclosure, there is provided a business system including: the message intermediate processing system is used for sending alarm prompt information to the message using system and the message caching middleware under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value; the message caching middleware is used for acquiring and storing the message from the message intermediate processing system after receiving the alarm prompt message, stopping acquiring the message from the message intermediate processing system after receiving the recovery notification message, and sending the stored message to the message using system; and the message using system is used for sending recovery notification information to the message caching middleware after the normal recovery.
In some embodiments, the business system further comprises: the message generating system is used for sending the generated message to the message intermediate processing system; the message using system is also used for acquiring messages from the message intermediate processing system and processing the acquired messages; when the message using system is abnormal, the message using system does not acquire and process the message from the message intermediate processing system any more, or the speed of the message using system for processing the message is less than the speed of the message generating system for sending the message to the message intermediate processing system.
In some embodiments, the message caching middleware is deployed between the message intermediate processing system and the message usage system.
According to another aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method as previously described.
In the method, under the condition that the number of messages which are not processed by a message using system in a message intermediate processing system exceeds a threshold value, the message intermediate processing system sends alarm prompt information to the message using system and a message cache middleware; after receiving the warning prompt message, the message caching middleware acquires and stores the message from the message intermediate processing system; after the message using system is recovered to normal, sending recovery notification information to the message caching middleware; and after receiving the recovery notification information, the message caching middleware stops acquiring the message from the message intermediate processing system and sends the stored message to the message using system. Therefore, the loss of unprocessed messages in the message queue of the message intermediate processing system can be avoided as much as possible, and the integrity and reliability of data communication of the service system are improved.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 is a flow diagram illustrating a method for message processing according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram illustrating a method for message processing according to further embodiments of the present disclosure;
FIG. 3 is a flow diagram illustrating a method for message processing according to further embodiments of the present disclosure;
FIG. 4 is a block diagram illustrating message caching middleware according to some embodiments of the present disclosure;
FIG. 5 is a block diagram illustrating message caching middleware, according to further embodiments of the present disclosure;
FIG. 6 is a block diagram illustrating message caching middleware, according to further embodiments of the present disclosure;
FIG. 7 is a block diagram illustrating a business system according to some embodiments of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The inventors of the present disclosure have found that when a message using system (also referred to as a consumer system) generates an exception, a message cannot be obtained from a message intermediate processing system and processed, or the processing speed is lower than the message issuing speed of a message generating system (also referred to as a producer system), a phenomenon of message accumulation occurs in the message intermediate processing system. After a certain time of accumulation, the message intermediate processing system can delete these unconsumed messages autonomously, which causes the problem of message loss in the message intermediate processing system.
In view of this, the embodiments of the present disclosure provide a method for message processing to avoid the loss of unprocessed messages in the message queue of the message intermediate processing system as much as possible. Methods for message processing according to some embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow diagram illustrating a method for message processing according to some embodiments of the present disclosure. As shown in fig. 1, the method includes steps S102 to S108.
In step S102, in a case that the number of messages in the message intermediate processing system (which may also be referred to as a message system) that are not processed by the message using system exceeds (i.e., is greater than or equal to) a threshold value, the message intermediate processing system sends an alert notification message to the message using system and message caching middleware (which may also be referred to as a message caching middleware module or a message caching middleware device).
In some embodiments, the method may further comprise: before the message intermediate processing system sends the alarm prompt information, the message generating system sends the generated message to the message intermediate processing system; and the message using system acquires the message from the message intermediate processing system and processes the acquired message.
And under the condition that the message using system is abnormal, the message using system does not acquire and process the message from the message intermediate processing system, or the speed of the message using system for processing the message is lower than the speed of the message generating system for sending the message to the message intermediate processing system.
Because the message using system does not acquire the message from the message intermediate processing system any more, and the message generating system continues to send the message to the message intermediate processing system, or the speed of the message using system processing the message in the message intermediate processing system is lower than the speed of the message generating system issuing the message, a pile-up phenomenon occurs on the messages in the message intermediate processing system which are not processed by the message using system, and the number of piled-up messages exceeds a threshold value. In such a case, the message intermediate processing system sends the alert prompt message to the message usage system and the message caching middleware.
The message caching middleware is arranged between the message intermediate processing system and the message using system and is used for receiving alarm prompt information sent by the message intermediate processing system and carrying out emergency message caching processing.
It should be noted that the threshold is a configuration number, and may be determined according to actual conditions or actual needs. For example, the threshold may be any value, such as 10M, 100M, etc.
In step S104, after receiving the warning prompt message, the message caching middleware obtains and stores the message from the message intermediate processing system.
For example, after receiving the alert prompt message, the message caching middleware acquires the messages which are not processed by the message using system (i.e. unconsumed messages) in batch from the message queue of the message intermediate processing system in place of the message using system and stores the messages.
In step S106, the message using system sends the recovery notification information to the message caching middleware after recovering to normal.
For example, the operation and maintenance personnel locate the reason for the abnormality of the message using system and recover the message using system, and the message using system sends recovery notification information to the message caching middleware after recovery.
In step S108, after receiving the recovery notification message, the message caching middleware stops acquiring the message from the message intermediate processing system, and sends the stored message to the message using system.
Thus, a method for message processing according to some embodiments of the present disclosure is provided. The method comprises the following steps: under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends alarm prompt information to the message using system and the message caching middleware; after receiving the warning prompt message, the message caching middleware acquires and stores the message from the message intermediate processing system; after the message using system is recovered to normal, sending recovery notification information to the message caching middleware; and after receiving the recovery notification information, the message caching middleware stops acquiring the message from the message intermediate processing system and sends the stored message to the message using system. Through the emergency cache of the message cache middleware, the loss of unconsumed unprocessed messages in a message queue of a message intermediate processing system can be avoided as much as possible, so that the integrity and the reliability of data communication of a service system are improved.
In addition, the method supports any business system using a message intermediate processing system as a message processing component.
In some embodiments, the method may further comprise: and after the message using system is recovered to be normal, the message using system continues to acquire the message from the message intermediate processing system, or the speed of the message using system for processing the message is greater than or equal to the speed of the message generating system for sending the message to the message intermediate processing system.
In some embodiments, the method may further comprise: before the message intermediate processing system sends the alarm prompt information, message caching middleware is deployed between the message intermediate processing system and the message using system. For example, the message caching middleware is a caching unit provided outside the message intermediate processing system.
Fig. 2 is a flow diagram illustrating a method for message processing according to further embodiments of the present disclosure. As shown in fig. 2, the method includes steps S202 to S224.
In step S202, the message generation system sends a message to the message intermediate processing system.
In step S204, the message using system acquires the message from the message queue of the message intermediate processing system and processes the message.
Next, an abnormality occurs in the message usage system.
In step S206, the message generating system continues to send messages to the message intermediate processing system.
At step S208, the number of queued message piles of the message intermediate processing system begins to proliferate.
In step S210, when the queue message accumulation of the message intermediate processing system reaches the threshold, an alarm prompt message is sent to the message using system and the message caching middleware.
In step S212, the message caching middleware retrieves and stores the message from the message intermediate processing system.
In step S214, the operation and maintenance personnel intervene to locate the message using system exception and recover.
Next, the message using system is restored to normal.
In step S216, the message generating system continues to send messages to the message intermediate processing system.
In step S218, the message using system sends the recovery notification information to the message caching middleware.
In step S220, the message caching middleware pushes the stored message to the message using system.
In step S222, the message caching middleware suspends retrieval of the message from the message intermediate processing system.
In step S224, the message using system resumes fetching messages from the message queue of the message intermediate processing system.
Thus, methods for message processing according to further embodiments of the present disclosure are provided. In the method, the problem that the message is possibly lost in the message intermediate processing system when the message using system is abnormal and cannot acquire the message from the message queue of the message intermediate processing system in time or the processing speed of the message using system is lower than the message issuing speed of the message generating system can be solved through the emergency cache of the message cache middleware. Therefore, the method can avoid the loss of unconsumed unprocessed messages in the message queue of the message intermediate processing system as much as possible, thereby improving the integrity and reliability of data communication of the service system.
Fig. 3 is a flow diagram illustrating a method for message processing according to further embodiments of the present disclosure. As shown in fig. 3, the method may include steps S302 to S304.
In step S302, after receiving the warning prompt message sent by the message intermediate processing system, the message is obtained and stored from the message intermediate processing system.
For example, in the case that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold, the message intermediate processing system sends out alarm prompt information, and the message caching middleware acquires and stores the messages from the message intermediate processing system after receiving the alarm prompt information.
In step S304, after receiving the recovery notification information sent by the message using system, the acquisition of the message from the message intermediate processing system is stopped, and the message that has been stored is sent to the message using system.
For example, the message using system sends the recovery notification information after recovering to normal, and the message caching middleware stops acquiring the message from the message intermediate processing system after receiving the recovery notification information, and sends the stored message to the message using system.
Thus, methods for message processing according to further embodiments of the present disclosure are provided. In the method, after alarm prompt information sent by a message intermediate processing system is received, the message is acquired from the message intermediate processing system and stored; and after receiving the recovery notification information sent by the message using system, stopping acquiring the message from the message intermediate processing system, and sending the stored message to the message using system. Therefore, the loss of unconsumed unprocessed messages in the message queue of the message intermediate processing system can be avoided as much as possible, and the integrity and reliability of data communication of the service system are improved.
Fig. 4 is a schematic diagram illustrating the structure of message caching middleware according to some embodiments of the present disclosure. As shown in fig. 4, the message caching middleware may include a receiving unit 402, a storing unit 404, and a transmitting unit 406.
The receiving unit 402 is configured to obtain a message from the message intermediate processing system after receiving the warning prompt message sent by the message intermediate processing system, and stop obtaining the message from the message intermediate processing system after receiving the recovery notification message sent by the message using system. Here, in the case where the number of messages not processed by the message using system in the message intermediation processing system exceeds a threshold value, the message intermediation processing system sends an alert notice information to the message using system and the message cache middleware.
The storage unit 404 is used for storing the message acquired from the message intermediate processing system.
The sending unit 406 is configured to send the stored message to the message using system after receiving the recovery notification information. Here, the message using system sends the recovery notification information to the message caching middleware after recovering from normal.
Thus, there is provided message caching middleware according to some embodiments of the present disclosure. The message caching middleware comprises: the receiving unit is used for acquiring the message from the message intermediate processing system after receiving the alarm prompt message sent by the message intermediate processing system and stopping acquiring the message from the message intermediate processing system after receiving the recovery notification message sent by the message using system; the storage unit is used for storing the message acquired from the message intermediate processing system; and a transmitting unit that transmits the stored message to the message using system after receiving the recovery notification information. Therefore, the loss of unprocessed messages in the message queue of the message intermediate processing system can be avoided as much as possible, and the integrity and reliability of data communication of the service system are improved.
Fig. 5 is a diagram illustrating the structure of message caching middleware according to further embodiments of the present disclosure. The message caching middleware includes a memory 510 and a processor 520. Wherein:
the memory 510 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is used for storing the instructions in the embodiment corresponding to fig. 3.
In some embodiments, as also shown in fig. 6, the message caching middleware 600 includes a memory 610 and a processor 620. Processor 620 is coupled to memory 610 through a BUS 630. The message caching middleware 600 may be further coupled to an external storage device 650 via the storage interface 640 for invoking external data, and may be further coupled to a network or another computer system (not shown) via the network interface 660, which will not be described in detail herein.
In the embodiment, the data instruction is stored in the memory, and the instruction is processed by the processor, so that the loss of unprocessed messages in a message queue of the message intermediate processing system can be avoided as much as possible, and the integrity and reliability of data communication of the service system are improved.
FIG. 7 is a block diagram illustrating a business system according to some embodiments of the present disclosure. As shown in fig. 7, the business system may include a message intermediate processing system 710, message caching middleware 720, and a message usage system 730.
The message mediation system 710 is configured to send an alert prompt to the message usage system 730 and the message caching middleware 720 if the number of messages in the message mediation system that are not processed by the message usage system 730 exceeds a threshold.
The message caching middleware 720 is configured to obtain and store the message from the message intermediate processing system 710 after receiving the alert notification message, stop obtaining the message from the message intermediate processing system 710 after receiving the recovery notification message, and send the stored message to the message using system 730. For example, the message caching middleware 720 is deployed between the message intermediate processing system 710 and the message usage system 730.
The message using system 730 is configured to send the message buffering middleware 720 with the recovery notification information after recovering from normal.
Thus, a business system in accordance with some embodiments of the present disclosure is provided. The service system comprises a message intermediate processing system, message caching middleware and a message using system. Through the emergency cache of the message cache middleware, the loss of unprocessed messages in a message queue of a message intermediate processing system can be avoided as much as possible, so that the integrity and the reliability of data communication of a service system are improved.
In some embodiments, the business system may further include a message generation system (not shown in fig. 7). The message generation system is used to send the generated message to the message intermediate processing system 710.
In some embodiments, the message using system 730 is further configured to continue to fetch messages from the message intermediate processing system 710 after resuming normal, or the message using system 730 processes messages at a rate greater than or equal to the rate at which the message generating system sends messages to the message intermediate processing system 710.
In other embodiments, the present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method in at least one of the corresponding embodiments of fig. 1-3. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims (11)
1. A method for message processing, comprising:
under the condition that the number of messages which are not processed by a message using system in a message intermediate processing system exceeds a threshold value, the message intermediate processing system sends alarm prompt information to the message using system and a message cache middleware;
after receiving the warning prompt message, the message caching middleware acquires and stores the message from the message intermediate processing system;
after the message using system is recovered to normal, sending recovery notification information to the message caching middleware; and
and after receiving the recovery notification information, the message caching middleware stops acquiring messages from the message intermediate processing system and sends the stored messages to the message using system.
2. The method of claim 1, further comprising:
before the message intermediate processing system sends the alarm prompt information, the message generating system sends the generated message to the message intermediate processing system; and
the message using system acquires a message from the message intermediate processing system and processes the acquired message;
when the message using system is abnormal, the message using system does not acquire and process the message from the message intermediate processing system any more, or the speed of the message using system for processing the message is less than the speed of the message generating system for sending the message to the message intermediate processing system.
3. The method of claim 2, further comprising:
and after the message using system is recovered to be normal, continuing to acquire the message from the message intermediate processing system, or enabling the speed of the message using system for processing the message to be greater than or equal to the speed of the message generating system for sending the message to the message intermediate processing system.
4. The method of claim 1, further comprising:
before the message intermediate processing system sends the alarm prompt information, deploying the message cache middleware between the message intermediate processing system and the message using system.
5. A method for message processing, comprising:
after receiving alarm prompt information sent by a message intermediate processing system, acquiring and storing a message from the message intermediate processing system; and
after receiving the recovery notification information sent by the message using system, stopping obtaining the message from the message intermediate processing system, and sending the stored message to the message using system;
wherein, under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends out the alarm prompt message; and the message using system sends the recovery notification information after recovering to normal.
6. A message caching middleware comprising:
the message processing system comprises a receiving unit, a message processing unit and a message processing unit, wherein the receiving unit is used for acquiring a message from the message intermediate processing system after receiving alarm prompt information sent by the message intermediate processing system and stopping acquiring the message from the message intermediate processing system after receiving recovery notification information sent by the message using system;
the storage unit is used for storing the information acquired from the information intermediate processing system; and
a sending unit, configured to send the stored message to the message using system after receiving the recovery notification information;
wherein, under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value, the message intermediate processing system sends the alarm prompt information to the message using system and a message cache middleware; and after the message using system is recovered to be normal, sending the recovery notification information to the message caching middleware.
7. A message caching middleware comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of claim 5 based on instructions stored in the memory.
8. A business system comprising:
the message intermediate processing system is used for sending alarm prompt information to the message using system and the message caching middleware under the condition that the number of messages which are not processed by the message using system in the message intermediate processing system exceeds a threshold value;
the message caching middleware is used for acquiring and storing the message from the message intermediate processing system after receiving the alarm prompt message, stopping acquiring the message from the message intermediate processing system after receiving the recovery notification message, and sending the stored message to the message using system; and
and the message using system is used for sending recovery notification information to the message caching middleware after the normal recovery.
9. The business system of claim 8 further comprising:
the message generating system is used for sending the generated message to the message intermediate processing system;
the message using system is also used for acquiring messages from the message intermediate processing system and processing the acquired messages;
when the message using system is abnormal, the message using system does not acquire and process the message from the message intermediate processing system any more, or the speed of the message using system for processing the message is less than the speed of the message generating system for sending the message to the message intermediate processing system.
10. The business system of claim 8, wherein the message caching middleware is deployed between the message intermediate processing system and the message usage system.
11. A computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010603070.1A CN113965624A (en) | 2020-06-29 | 2020-06-29 | Method for processing message, message caching middleware and service system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010603070.1A CN113965624A (en) | 2020-06-29 | 2020-06-29 | Method for processing message, message caching middleware and service system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113965624A true CN113965624A (en) | 2022-01-21 |
Family
ID=79459137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010603070.1A Withdrawn CN113965624A (en) | 2020-06-29 | 2020-06-29 | Method for processing message, message caching middleware and service system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113965624A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843937A (en) * | 2016-03-31 | 2016-08-10 | 北京奇虎科技有限公司 | Data processing method and device |
CN106878197A (en) * | 2017-02-22 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of management system and method for the transmission of cloud platform message |
CN107295045A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of message treatment method and device |
CN109120713A (en) * | 2018-09-21 | 2019-01-01 | 中国建设银行股份有限公司 | Message sends the processing method and system, device and storage medium of failure |
CN110347518A (en) * | 2018-04-04 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Message treatment method and device |
CN110377434A (en) * | 2019-07-04 | 2019-10-25 | 深圳前海微众银行股份有限公司 | A kind of service blowout method, device and message-oriented middleware |
CN110659124A (en) * | 2018-06-28 | 2020-01-07 | 北京京东尚科信息技术有限公司 | Message processing method and device |
-
2020
- 2020-06-29 CN CN202010603070.1A patent/CN113965624A/en not_active Withdrawn
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843937A (en) * | 2016-03-31 | 2016-08-10 | 北京奇虎科技有限公司 | Data processing method and device |
CN107295045A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of message treatment method and device |
CN106878197A (en) * | 2017-02-22 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of management system and method for the transmission of cloud platform message |
CN110347518A (en) * | 2018-04-04 | 2019-10-18 | 阿里巴巴集团控股有限公司 | Message treatment method and device |
CN110659124A (en) * | 2018-06-28 | 2020-01-07 | 北京京东尚科信息技术有限公司 | Message processing method and device |
CN109120713A (en) * | 2018-09-21 | 2019-01-01 | 中国建设银行股份有限公司 | Message sends the processing method and system, device and storage medium of failure |
CN110377434A (en) * | 2019-07-04 | 2019-10-25 | 深圳前海微众银行股份有限公司 | A kind of service blowout method, device and message-oriented middleware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661659B (en) | Alarm method, device and system and electronic equipment | |
CN106817295B (en) | Message processing device and method | |
CN107515796B (en) | Equipment abnormity monitoring processing method and device | |
CN108769112B (en) | Non-invasive RPC interface monitoring method and system | |
US9729355B2 (en) | Method, device and system for remote management of terminal peripheral | |
CN111917811B (en) | Message pushing method and system | |
CN104967537A (en) | Alarm information pushing method and device | |
US20190036762A1 (en) | Exception monitoring and alarming method and apparatus | |
CN110554930A (en) | Data storage method and related equipment | |
CN108845916B (en) | Platform monitoring and alarming method, device, equipment and computer readable storage medium | |
CN111564027B (en) | Alarm information processing method and device | |
CN106170013B (en) | A kind of Kafka message uniqueness method based on Redis | |
CN113378083B (en) | Short link generation method, device, equipment and storage medium | |
CN113965624A (en) | Method for processing message, message caching middleware and service system | |
CN113900842A (en) | Message consumption method and device, electronic equipment and computer storage medium | |
CN111949421B (en) | SDK calling method, device, electronic equipment and computer readable storage medium | |
CN113806045A (en) | Task allocation method, system, device and medium | |
CN116633874A (en) | Message processing method, device, equipment and storage medium based on blocking queue | |
CN111352746A (en) | Message flow limiting method and storage medium | |
CN107025148B (en) | Mass data processing method and device | |
CN106911434B (en) | Data retransmission prevention method and system | |
CN115033927A (en) | Method, device, equipment and medium for detecting data integrity | |
CN111953621A (en) | Data transmission method and device, computer equipment and storage medium | |
CN111681397A (en) | Distribution network automation short message sending method, sending system and storage medium | |
CN111614501A (en) | Monitoring method and system |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220121 |