Message distribution method and device, equipment and storage medium

By initially and secondary filtering of messages and configuring message queues and distributors according to message types, the problem of lack of filtering and classification capabilities of message sending systems in the prior art is solved, and the efficiency and accuracy of message sending are improved.

CN119520401APending Publication Date: 2025-02-25ZHENGZHOU ZHENGRAN PRESSURE ADJUSTING CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411646480.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing message sending system lacks the ability to effectively filter and classify messages, which leads to the inability to differentiate processing based on the characteristics and needs of the message, which affects the efficiency and accuracy of message sending.

Method used

By responding to the message sending request from the service side, initial filtering is performed to obtain reference messages to be sent, corresponding message queues and distributors are configured according to the message type, and secondary filtering is performed to obtain the target messages to be sent, and finally message distribution is performed based on the message queues and distributors.

Benefits of technology

It realizes effective filtering and classification of messages, and can perform differentiated processing according to the characteristics and needs of messages, improving the efficiency and accuracy of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520401A_ABST
    Figure CN119520401A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of information processing, and discloses a message distribution method and device, equipment and a storage medium. The method comprises the following steps: in response to a message sending request pushed by a service end, obtaining an initial to-be-sent message corresponding to the sending request; performing primary filtering on the initial to-be-sent message to obtain a reference to-be-sent message; acquiring a message type of the reference to-be-sent message; configuring a corresponding message queue and a distributor for the reference to-be-sent message according to the message type; performing secondary filtering on the reference to-be-sent messages in the message queue to obtain target to-be-sent messages; and distributing the target to-be-sent message based on the message queue and the distributor. Through the above mode, the message can be effectively filtered and classified, differentiated processing is performed on message distribution, and the message sending efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a message distribution method, device, equipment and storage medium. Background Art

[0002] In the process of informatization, more and more application systems are playing a role in enterprises. However, the message transmission between application systems also brings difficulties and challenges to high-speed informatization enterprises. Therefore, the message transmission service as a bottom-level service was born and has been widely used.

[0003] However, current message sending systems often lack the ability to effectively filter and classify messages, resulting in the inability to perform differentiated processing based on the characteristics and needs of the messages, thereby affecting the efficiency and accuracy of message sending.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a message distribution method, device, equipment and storage medium, aiming to solve the technical problem that the current message sending system often lacks the ability to effectively filter and classify messages, resulting in the inability to perform differentiated processing according to the characteristics and requirements of the messages, thereby affecting the efficiency and accuracy of message sending.

[0006] To achieve the above object, the present invention provides a message distribution method, which comprises the following steps:

[0007] In response to a message sending request pushed by a service end, obtaining an initial message to be sent corresponding to the sending request;

[0008] Filtering the initial message to be sent to obtain a reference message to be sent;

[0009] Obtain the message type of the reference message to be sent;

[0010] According to the message type, a corresponding message queue and a distributor are configured for the reference message to be sent;

[0011] Performing secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message;

[0012] The target message to be sent is distributed based on the message queue and the distributor.

[0013] In some embodiments, configuring a corresponding message queue and a distributor for the reference message to be sent according to the message type includes:

[0014] Obtaining a request identifier corresponding to the message sending request;

[0015] Determine a message distribution mode based on the request identifier;

[0016] If the distribution mode is not the first distribution mode, the number of message queues or the number of distributors is determined according to the message type, and corresponding message queues and distributors are configured for the reference message to be sent based on the number of message queues or the number of distributors.

[0017] In some embodiments, determining the number of message queues or the number of distributors according to the message type includes:

[0018] If the distribution mode is the second distribution mode, determining the number of the distributors to be one, and determining the number of message queues according to the message type, the number being greater than one;

[0019] If the distribution mode is the third distribution mode, determining the number of the message queues to be one, and determining the number of the distributors according to the message type, the number being greater than one;

[0020] If the distribution mode is the fourth distribution mode, the number of the message queues and the number of the distributors are determined according to the message type, and both numbers are greater than one.

[0021] In some embodiments, the method further comprises:

[0022] If the distribution method is the second distribution method or the fourth distribution method, before message distribution, the main message queue and the secondary message queue of the message queue are determined, and the message sending priority of the main message queue is higher than the message sending priority of the secondary message queue.

[0023] In some embodiments, the secondary filtering of the reference to-be-sent messages in the message queue includes:

[0024] Extracting keywords of the reference message to be sent;

[0025] Comparing the keyword with a preset keyword list;

[0026] Performing secondary filtering on the reference message to be sent based on the comparison result;

[0027] and / or,

[0028] Obtain the message ID of the reference message to be sent and the object ID of the received message;

[0029] Compare the message ID and the object ID with a preset interception list;

[0030] The reference message to be sent is secondary filtered based on the comparison result.

[0031] In some embodiments, distributing the target message to be sent based on the message queue and the distributor includes:

[0032] Determine the importance of the message based on the message type of the target message to be sent;

[0033] Determining an initial sending frequency based on the message importance;

[0034] Get the load status of the original message receiving object;

[0035] determining a load state according to the load state;

[0036] The initial sending frequency is adjusted or the original message receiving object is replaced based on the load status, and the target message to be sent is distributed according to the adjusted sending frequency or distributed to other candidate message receiving objects based on the message queue and the distributor.

[0037] In some embodiments, adjusting the initial sending frequency or changing the original message receiving object based on the load status includes:

[0038] determining a reference sending frequency according to the load state;

[0039] If the initial transmission frequency is less than or equal to the reference transmission frequency, adjusting the initial transmission frequency to the reference transmission frequency;

[0040] If the initial sending frequency is greater than the reference sending frequency, the original message receiving object is replaced with an alternative message receiving object, and the alternative message receiving object has the same object properties as the original message receiving object, and the object properties include at least interface compatibility, message processing capability and data format type.

[0041] In addition, to achieve the above object, the present invention also proposes a message distribution device, the message distribution device comprising:

[0042] An acquisition module, configured to respond to a message sending request pushed by a service end and obtain an initial message to be sent corresponding to the sending request;

[0043] A filtering module, used for filtering the initial message to be sent to obtain a reference message to be sent;

[0044] An identification module, used to obtain the message type of the reference message to be sent;

[0045] A construction module, configured to configure a corresponding message queue and a distributor for the reference message to be sent according to the message type;

[0046] The filtering module is used to perform secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message;

[0047] A distribution module is used to distribute the target message to be sent based on the message queue and the distributor.

[0048] In addition, to achieve the above-mentioned purpose, the present invention also proposes a message distribution device, which includes: a memory, a processor, and a message distribution program stored in the memory and executable on the processor, wherein the message distribution program is configured to implement the steps of the message distribution method described above.

[0049] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a message distribution program is stored, and when the message distribution program is executed by a processor, the steps of the message distribution method described above are implemented.

[0050] In the present invention, in response to a message sending request pushed by a business end, an initial message to be sent corresponding to the sending request is obtained; the initial message to be sent is filtered once to obtain a reference message to be sent; the message type of the reference message to be sent is obtained; a corresponding message queue and distributor are configured for the reference message to be sent according to the message type; the reference message to be sent in the message queue is filtered twice to obtain a target message to be sent; and the target message to be sent is distributed based on the message queue and the distributor. Through the above method, the ability to effectively filter and classify messages can be achieved, and the distribution of messages can be differentiated, thereby improving the efficiency and accuracy of message sending. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is a flow chart of a first embodiment of a message distribution method according to the present invention;

[0052] Figure 2 This is a structural block diagram of the first embodiment of the message distribution device of the present invention.

[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0055] The embodiment of the present invention provides a message distribution method, referring to Figure 1 , Figure 1 The figure is a flow chart of a first embodiment of a message distribution method of the present invention.

[0056] In this embodiment, the message distribution method includes the following steps:

[0057] Step S10: In response to the message sending request pushed by the service end, an initial message to be sent corresponding to the sending request is obtained.

[0058] In this embodiment, the execution subject of this embodiment is a message distribution device, wherein the message distribution device has functions such as data processing, data communication and program running. The message distribution device can be a computer terminal device or other network device, and of course it can also be other devices with similar functions, and this embodiment does not limit this.

[0059] It should be noted that current message sending systems often lack the ability to effectively filter and classify messages, resulting in the inability to perform differentiated processing based on the characteristics and needs of the messages, thereby affecting the efficiency and accuracy of message sending.

[0060] In order to solve the above technical problems, in this embodiment, in response to the message sending request pushed by the business end, the initial message to be sent corresponding to the sending request is obtained; the initial message to be sent is filtered once to obtain a reference message to be sent; the message type of the reference message to be sent is obtained; the corresponding message queue and distributor are configured for the reference message to be sent according to the message type; the reference message to be sent in the message queue is filtered twice to obtain the target message to be sent; the target message to be sent is distributed based on the message queue and the distributor. Through the above method, the ability to effectively filter and classify messages can be achieved, and the distribution of messages can be differentiated, which improves the efficiency and accuracy of message sending. Specifically, it can be implemented as follows.

[0061] In a specific implementation, in this embodiment, a message sending request pushed by the service end is first responded to, and an initial message to be sent can be further obtained according to the message sending request.

[0062] Step S20: filtering the initial message to be sent to obtain a reference message to be sent.

[0063] After receiving the initial message to be sent, in this embodiment, the initial message to be sent is first filtered, so as to obtain a reference message to be sent.

[0064] It should be noted that the first filtering in this embodiment is to filter out redundant information in the initial message to be sent. A deduplication algorithm, such as a hash table, can be used to filter out duplicate messages. The first filtering also includes filtering of erroneous information, such as using natural language processing (NLP) tools to check grammatical errors in messages, or machine learning models to identify erroneous information, including but not limited to supervised learning algorithms, such as support vector machines (SVM), random forests, or deep learning models.

[0065] Step S30: Obtain the message type of the reference message to be sent.

[0066] After completing the first filtering, this embodiment needs to further obtain the message type of the reference message to be sent, for example, type A message has high throughput and low latency, type B message has medium throughput and medium latency, type C message has low throughput and high latency tolerance, etc.

[0067] Step S40: configuring a corresponding message queue and a distributor for the reference message to be sent according to the message type.

[0068] Before configuring the message queue and distributor according to the message type, it is necessary to first obtain the request identifier corresponding to the message sending request; determine the message distribution method based on the request identifier; if the distribution method is not the first distribution method, determine the number of message queues or the number of distributors according to the message type, and configure the corresponding message queue and distributor for the reference message to be sent based on the number of message queues or the number of distributors.

[0069] It should be noted that the message sending request determines the corresponding message distribution method. The specific distribution method can be determined through the above-mentioned u request identifier. The distribution methods in this embodiment include the first distribution method, the second distribution method, the third distribution method and the fourth distribution method. Different distribution methods correspond to preset numbers, which can be 1.

[0070] Specifically, if it is the first distribution method, it can be directly determined that the number of message queues and distributors are both 1, and there is no need to subsequently determine the number of message queues or the number of distributors according to the message type, and configure corresponding message queues and distributors for the reference message to be sent based on the number of message queues or the number of distributors.

[0071] If it is the second distribution mode, the number of distributors is determined to be one, and the number of message queues is determined according to the message type. The number is greater than one, that is, a single distributor and multiple message queues. For example, for type D messages, that is, low throughput and high availability requirements, 1 distributor and 3 message queues can be set.

[0072] If it is the third distribution method, the number of message queues is determined to be one, and the number of distributors is determined according to the message type. The number is greater than one, that is, a single message queue and multiple distributors. For example, the above-mentioned C type message can set 2 distributors and 1 message queue.

[0073] If the distribution method is the fourth distribution method, the number of message queues and the number of distributors are determined according to the message type, and the numbers are both greater than one, that is, multiple distributors and multiple message queues. For example, type B messages can be set with 5 distributors and 3 message queues.

[0074] Furthermore, if the distribution method is the second distribution method or the fourth distribution method, that is, multiple message queues, it is also necessary to determine the main message queue and the secondary message queue. The message sending priority of the main message queue is higher than the message sending priority of the secondary message queue. Therefore, messages that need to be distributed with higher priority can be placed in the main message queue.

[0075] Step S50: performing secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message.

[0076] Before distribution, this embodiment also requires a second filtering of the reference messages to be sent in each message queue, specifically, extracting keywords of the reference messages to be sent; comparing the keywords with a preset keyword list; based on the comparison result, performing a second filtering on the reference messages to be sent; and / or, obtaining the message ID of the reference message to be sent and the object ID of the receiving message; comparing the message ID and the object ID with a preset interception list; and performing a second filtering on the reference message to be sent based on the comparison result.

[0077] It should be noted that the first method is to compare keywords. If there is a keyword that is consistent with the preset keyword, the message corresponding to the keyword will be filtered out. The preset keyword can be set according to actual needs, and this is not limited in this embodiment. The second method is to compare the message ID and the object ID with the blacklist and whitelist. If the message ID and the object ID both appear in the whitelist, they are released. Otherwise, if the message ID and the object ID both appear in the blacklist, they are filtered out.

[0078] Step S60: Distribute the target message to be sent based on the message queue and the distributor.

[0079] If the distribution mode is the first distribution mode, that is, a single distributor and a single message queue, in this mode all messages are written into the same message queue by a single message distributor, and the message processing process of the application takes the message from the message queue for corresponding processing.

[0080] If the distribution mode is the second distribution mode, that is, a single distributor and multiple message queues, this mode mainly involves a message distributor writing messages into different message queues by category or priority, and each message queue is processed separately by a message processing application.

[0081] If the distribution mode is the third distribution mode, that is, a single message queue and multiple distributors, this mode mainly involves multiple message distributors receiving the same or different messages at the same time, but writing these messages into the same message queue.

[0082] If the distribution method is the fourth distribution method, that is, multiple distributors and multiple message queues, this method is combined with the above method, mainly multiple message distributors receive the same or different messages at the same time, and then write the messages into different message queues either by category or by priority, and each message queue is processed separately by the message processing application.

[0083] Furthermore, when distributing messages, the load status of the original message receiving object also needs to be considered in this embodiment. Specifically, the message importance is determined based on the message type of the target message to be sent; the initial sending frequency is determined based on the message importance; the load status of the original message receiving object is obtained; the load status is determined based on the load status; the initial sending frequency is adjusted or the original message receiving object is replaced based on the load status, and the target message to be sent is distributed according to the adjusted sending frequency or distributed to other alternative message receiving objects based on the message queue and the distributor.

[0084] It should be noted that, the higher the importance, the higher the corresponding initial sending frequency, which means that the message needs to be distributed faster. However, considering the receiving capacity of the original message receiving object, different load states correspond to different receiving frequencies, and the receiving frequency corresponds to the sending frequency of the message. For example, when in a high load state, the message sending frequency needs to be reduced accordingly. Based on this, the adjusting the initial sending frequency or replacing the original message receiving object based on the load state further includes: determining a reference sending frequency according to the load state; if the initial sending frequency is less than or equal to the reference sending frequency, adjusting the initial sending frequency to the reference sending frequency; if the initial sending frequency is greater than the reference sending frequency, replacing the original message receiving object with an alternative message receiving object, and the alternative message receiving object has the same object properties as the original message receiving object, and the object properties include at least interface compatibility, message processing capability, and data format type.

[0085] It should be noted that the initial sending frequency is compared with the reference sending frequency. If the initial sending frequency is less than or equal to the reference sending frequency, it means that when the message is distributed according to the initial sending frequency, the original message receiving object can receive it. At this time, in order to speed up the sending efficiency, the initial sending frequency can be increased to the reference sending frequency. On the contrary, if the initial sending frequency is greater than the reference sending frequency, it means that when the message is distributed according to the initial sending frequency, the original message receiving object cannot receive it well. In this case, in this embodiment, the message is sent to the alternative message receiving object, and then the judgment and adjustment are also performed according to the above. If there is no suitable alternative message receiving object in the end, the initial sending frequency can be reduced to the reference sending frequency as the last alternative solution.

[0086] In this embodiment, in response to the message sending request pushed by the business end, the initial message to be sent corresponding to the sending request is obtained; the initial message to be sent is filtered once to obtain a reference message to be sent; the message type of the reference message to be sent is obtained; the corresponding message queue and distributor are configured for the reference message to be sent according to the message type; the reference message to be sent in the message queue is filtered twice to obtain the target message to be sent; the target message to be sent is distributed based on the message queue and the distributor. Through the above method, the ability to effectively filter and classify messages can be achieved, and the distribution of messages can be differentiated, thereby improving the efficiency and accuracy of message sending.

[0087] In addition, an embodiment of the present invention further proposes a storage medium, on which a message distribution program is stored. When the message distribution program is executed by a processor, the steps of the message distribution method described above are implemented.

[0088] Reference Figure 2 , Figure 2 This is a structural block diagram of the first embodiment of the message distribution device of the present invention.

[0089] like Figure 2 As shown, the message distribution device proposed in the embodiment of the present invention includes:

[0090] An acquisition module 10 is used to respond to a message sending request pushed by a service end and obtain an initial message to be sent corresponding to the sending request;

[0091] A filtering module 20, configured to filter the initial message to be sent to obtain a reference message to be sent;

[0092] An identification module 30, configured to obtain a message type of the reference message to be sent;

[0093] A construction module 40 is used to configure a corresponding message queue and a distributor for the reference message to be sent according to the message type;

[0094] The filtering module 20 is used to perform secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message;

[0095] The distribution module 50 is used to distribute the target message to be sent based on the message queue and the distributor.

[0096] In this embodiment, in response to the message sending request pushed by the business end, the initial message to be sent corresponding to the sending request is obtained; the initial message to be sent is filtered once to obtain a reference message to be sent; the message type of the reference message to be sent is obtained; the corresponding message queue and distributor are configured for the reference message to be sent according to the message type; the reference message to be sent in the message queue is filtered twice to obtain the target message to be sent; the target message to be sent is distributed based on the message queue and the distributor. Through the above method, the ability to effectively filter and classify messages can be achieved, and the distribution of messages can be differentiated, thereby improving the efficiency and accuracy of message sending.

[0097] In some embodiments, the construction module 40 is used to obtain a request identifier corresponding to the message sending request;

[0098] Determine a message distribution mode based on the request identifier;

[0099] If the distribution mode is not the first distribution mode, the number of message queues or the number of distributors is determined according to the message type, and corresponding message queues and distributors are configured for the reference message to be sent based on the number of message queues or the number of distributors.

[0100] In some embodiments, the construction module 40 is used to determine that the number of the distributors is one, and determine the number of message queues according to the message type, and the number is greater than one, if the distribution mode is the second distribution mode;

[0101] If the distribution mode is the third distribution mode, determining the number of the message queues to be one, and determining the number of the distributors according to the message type, the number being greater than one;

[0102] If the distribution mode is the fourth distribution mode, the number of the message queues and the number of the distributors are determined according to the message type, and both numbers are greater than one.

[0103] In some embodiments, the method further comprises:

[0104] If the distribution method is the second distribution method or the fourth distribution method, before message distribution, the main message queue and the secondary message queue of the message queue are determined, and the message sending priority of the main message queue is higher than the message sending priority of the secondary message queue.

[0105] In some embodiments, the filtering module 20 is used to extract keywords of the reference message to be sent;

[0106] Comparing the keyword with a preset keyword list;

[0107] Performing secondary filtering on the reference message to be sent based on the comparison result;

[0108] and / or,

[0109] Obtain the message ID of the reference message to be sent and the object ID of the received message;

[0110] Compare the message ID and the object ID with a preset interception list;

[0111] The reference message to be sent is secondary filtered based on the comparison result.

[0112] In some embodiments, the distribution module 50 is used to determine the message importance based on the message type of the target message to be sent;

[0113] Determining an initial sending frequency based on the message importance;

[0114] Get the load status of the original message receiving object;

[0115] determining a load state according to the load state;

[0116] The initial sending frequency is adjusted or the original message receiving object is replaced based on the load status, and the target message to be sent is distributed according to the adjusted sending frequency or distributed to other candidate message receiving objects based on the message queue and the distributor.

[0117] In some embodiments, the distribution module 50 is used to determine a reference transmission frequency according to the load state;

[0118] If the initial transmission frequency is less than or equal to the reference transmission frequency, adjusting the initial transmission frequency to the reference transmission frequency;

[0119] If the initial sending frequency is greater than the reference sending frequency, the original message receiving object is replaced with an alternative message receiving object, and the alternative message receiving object has the same object properties as the original message receiving object, and the object properties include at least interface compatibility, message processing capability and data format type.

[0120] An embodiment of the present application also provides a message distribution device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus, and the memory is used to store the message distribution program; the processor is used to implement the above-mentioned message distribution method when executing the program stored in the memory.

[0121] The communication bus mentioned in the above message distribution device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0122] The communication interface is used for communication between the above message distribution device and other devices.

[0123] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0124] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.

[0125] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0126] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0127] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0128] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

[0129] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0130] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0131] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the message distribution method provided in any embodiment of the present invention, and will not be repeated here.

[0132] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0133] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0135] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

[0136] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

Claims

1. A message distribution method, characterized in that: The message distribution method comprises: In response to a message sending request pushed by a service end, obtaining an initial message to be sent corresponding to the sending request; Filtering the initial message to be sent to obtain a reference message to be sent; Obtain the message type of the reference message to be sent; According to the message type, a corresponding message queue and a distributor are configured for the reference message to be sent; Performing secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message; The target message to be sent is distributed based on the message queue and the distributor.

2. The message distribution method according to claim 1, characterized in that: The configuring a corresponding message queue and a distributor for the reference message to be sent according to the message type includes: Obtaining a request identifier corresponding to the message sending request; Determine a message distribution mode based on the request identifier; If the distribution mode is not the first distribution mode, the number of message queues or the number of distributors is determined according to the message type, and corresponding message queues and distributors are configured for the reference message to be sent based on the number of message queues or the number of distributors.

3. The message distribution method according to claim 2, characterized in that: Determining the number of message queues or the number of distributors according to the message type includes: If the distribution mode is the second distribution mode, determining the number of the distributors to be one, and determining the number of message queues according to the message type, the number being greater than one; If the distribution mode is the third distribution mode, determining the number of the message queues to be one, and determining the number of the distributors according to the message type, the number being greater than one; If the distribution mode is the fourth distribution mode, the number of the message queues and the number of the distributors are determined according to the message type, and both numbers are greater than one.

4. The message distribution method according to claim 3, characterized in that: The method further comprises: If the distribution method is the second distribution method or the fourth distribution method, before message distribution, the main message queue and the secondary message queue of the message queue are determined, and the message sending priority of the main message queue is higher than the message sending priority of the secondary message queue.

5. The message distribution method according to claim 1, characterized in that: The second filtering of the reference to-be-sent messages in the message queue includes: Extracting keywords of the reference message to be sent; Comparing the keyword with a preset keyword list; Performing secondary filtering on the reference message to be sent based on the comparison result; and / or, Obtain the message ID of the reference message to be sent and the object ID of the received message; Compare the message ID and the object ID with a preset interception list; The reference message to be sent is secondary filtered based on the comparison result.

6. The message distribution method according to any one of claims 1 to 5, characterized in that: The distributing the target message to be sent based on the message queue and the distributor includes: Determine the importance of the message based on the message type of the target message to be sent; Determining an initial sending frequency based on the message importance; Get the load status of the original message receiving object; determining a load state according to the load state; The initial sending frequency is adjusted or the original message receiving object is replaced based on the load status, and the target message to be sent is distributed according to the adjusted sending frequency or distributed to other candidate message receiving objects based on the message queue and the distributor.

7. The message distribution method according to claim 6, characterized in that: The adjusting the initial sending frequency or changing the original message receiving object based on the load state includes: determining a reference sending frequency according to the load state; If the initial transmission frequency is less than or equal to the reference transmission frequency, adjusting the initial transmission frequency to the reference transmission frequency; If the initial sending frequency is greater than the reference sending frequency, the original message receiving object is replaced with an alternative message receiving object, and the alternative message receiving object has the same object properties as the original message receiving object, and the object properties include at least interface compatibility, message processing capability and data format type.

8. A message distribution device, characterized in that: The message distribution device comprises: An acquisition module, configured to respond to a message sending request pushed by a service end and obtain an initial message to be sent corresponding to the sending request; A filtering module, used for filtering the initial message to be sent to obtain a reference message to be sent; An identification module, used to obtain the message type of the reference message to be sent; A construction module, configured to configure a corresponding message queue and a distributor for the reference message to be sent according to the message type; The filtering module is used to perform secondary filtering on the reference to-be-sent message in the message queue to obtain the target to-be-sent message; A distribution module is used to distribute the target message to be sent based on the message queue and the distributor.

9. A message distribution device, characterized in that: The message distribution device comprises: a memory, a processor, and a message distribution program stored in the memory and executable on the processor, wherein the message distribution program is configured to implement the steps of the message distribution method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a message distribution program, and when the message distribution program is executed by the processor, the steps of the message distribution method according to any one of claims 1 to 7 are implemented.