CN111679918A - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN111679918A
CN111679918A CN201910181044.1A CN201910181044A CN111679918A CN 111679918 A CN111679918 A CN 111679918A CN 201910181044 A CN201910181044 A CN 201910181044A CN 111679918 A CN111679918 A CN 111679918A
Authority
CN
China
Prior art keywords
message
keyword
topic
theme
matching rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910181044.1A
Other languages
Chinese (zh)
Other versions
CN111679918B (en
Inventor
苑威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910181044.1A priority Critical patent/CN111679918B/en
Publication of CN111679918A publication Critical patent/CN111679918A/en
Application granted granted Critical
Publication of CN111679918B publication Critical patent/CN111679918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a message transmission method and device, relates to the technical field of communication, and can simplify a message transmission process and improve message transmission efficiency. The method comprises the following steps: acquiring a first message from a producer, wherein the first message is a message corresponding to a first theme and is a related message corresponding to a second theme, and a keyword of the first message is a first keyword; converting the first keyword into a second keyword according to a keyword conversion rule, wherein the second keyword corresponds to a second theme, and the consumer side subscribes to the second theme; and distributing the first message to a queue corresponding to the second theme according to the second keyword.

Description

Message transmission method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a message transmission method and device.
Background
A Message Queue (MQ) is an intermediate for message transmission, and can forward a message generated by a producer to a consumer, so as to implement communication between the producer and the consumer.
Typically, the producer end writes messages to the MQ, and the consumer end may read messages in the MQ or subscribe to messages of one or more topics (topic) in the MQ. In an MQ, the MQ includes a message exchanger (exchange) and a queue (queue), where the message exchanger is configured to forward a message written by a producer to the corresponding queue according to a certain rule, so that a consumer can obtain the message from the corresponding queue according to the message to which the consumer subscribes. Specifically, when the producer writes a message into the MQ, the message includes a message key (key), and then a message exchanger (exchange) in the MQ can determine a topic corresponding to the message according to the message key, where a mapping rule between the message key and the topic is configured in the message exchanger, and further the message exchanger forwards the message to a queue corresponding to the topic, so that the consumer reads the message from the corresponding queue according to the subscribed topic.
In practical applications, the consumer end needs to receive not only the message corresponding to the topic subscribed by the consumer end (i.e., the message described above, which is referred to as the "directly belonging message of the topic"), but also the associated message corresponding to the topic subscribed by the consumer end, for example, assuming that the topic is the topic1, the directly belonging message of the topic1 is the message 1, the associated message is the message 2, and the topic corresponding to the associated message is the topic2, however, in the message transmission method in the MQ, the consumer end needs to subscribe the topic2 to receive the message 2, that is, the associated message of the topic1 can be received, and in the case that the number of consumers is large or the association relationship between the topic and the message dynamically changes, the message transmission in the MQ may be complicated.
Disclosure of Invention
The embodiment of the application provides a message transmission method and device, which can simplify a message transmission process and improve the message transmission efficiency.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a message transmission method, where the method includes: acquiring a first message from a producer, wherein the first message is a message corresponding to a first theme and is a related message corresponding to a second theme, and a keyword of the first message is a first keyword; converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keyword is a second topic, and the consumer side subscribes to the second topic; and distributing the first message to a queue corresponding to the second theme according to the second keyword.
In the embodiment of the application, the message generated by the producer end contains the keyword of the message, the keyword is used for identifying the subject of the message, that is, is used for determining the subject of the message, and then the message queue server distributes the message to the queue corresponding to the subject of the message, so as to complete the correct forwarding of the message.
The embodiment of the application provides a message transmission method, which is applied to a scene that a consumer terminal needs to receive a related message corresponding to a certain theme (for example, theme 2), but the consumer terminal does not subscribe to the theme of the related message (for example, the theme of the related message is theme 1), so that the consumer terminal can smoothly receive the related message corresponding to the certain theme. Because the keyword conversion can be completed in the message queue server, the transmission of the associated message corresponding to a certain theme can be smoothly completed, so that the message transmission flow is simplified, and the message transmission efficiency is improved.
In a possible implementation manner, the keyword conversion rule is set according to a target feature in the keyword matching rule.
In this embodiment of the present application, a relevant keyword conversion rule is preconfigured in the message queue server, and the keyword conversion rule may be set according to actual usage requirements, so as to flexibly specify that the keyword to be converted may be converted into a keyword that can be matched with a certain topic, for example, the keyword to be converted is a first keyword, the converted keyword is a second keyword, the keyword conversion rule specifies that the first keyword may be converted into a keyword that can be matched with a second topic, where the keyword that can be matched with the second topic is the second keyword.
Optionally, the keyword matching rule is preconfigured in the message queue server, specifically, the keyword matching rule is configured in a message exchanger of the message queue server, the keyword matching rule is used for determining a topic of the first message according to a keyword of the first message received by the message queue server, the keyword matching rule includes correspondence between multiple sets of target features and topics, and one set of correspondence includes topics corresponding to the target features. Optionally, in this embodiment of the application, the target feature may be all contents of the keyword, or may be a prefix of the keyword or a suffix of the keyword, and specifically, the target feature may be determined according to a use requirement, and this embodiment of the application is not limited. Illustratively, a keyword of a message is in the form of a string, the prefix of the keyword may be the first N characters (N ≧ 1) of the string of the keyword, the suffix of the keyword may be the last M characters (M ≧ 1) of the keyword, the prefix of the keyword may be represented by "x." and the suffix of the keyword may be represented by ". y", e.g., a keyword of a message is b. c, then the prefix of the keyword of the message may be b. and the suffix of the keyword of the message may be.c.
In the embodiment of the application, the keyword matching rules can be flexibly set, and can be set such that one target feature corresponds to one topic, or one target feature also corresponds to multiple topics, or multiple target features also correspond to one topic.
In this embodiment, the keyword conversion rule is configured on a keyword converter in a message queue server. Alternatively, the keyword conversion rule may be issued to the keyword converter by a control device (e.g., a controller), and the keyword converter may then perform the keyword conversion process. Specifically, after the message exchanger receives the first message, the message exchanger sends the first message to the keyword converter, the keyword converter converts the keyword of the first message from the first keyword to the second keyword, and the keyword converter sends the first message to the message exchanger. It should be noted that the key carried in the first message sent by the key translator to the message exchanger has changed, and the key is no longer the first key but the second key.
In a possible implementation manner, the method for allocating the first message to the queue corresponding to the second topic according to the second keyword may include: determining the topic of the first message as a second topic according to the second keyword and a keyword matching rule, wherein the keyword matching rule comprises the corresponding relation between a plurality of groups of target features and the topic; and distributing the first message to a queue corresponding to the second topic.
In this embodiment of the present application, in the process of determining the topic of the message according to the keyword matching rule, the topic of the message corresponding to the keyword may be determined in a complete matching manner or a fuzzy matching manner, where the fuzzy matching manner may include prefix matching of the keyword (which may be understood as that the target feature in the keyword matching rule is a prefix of the keyword) or suffix matching of the keyword (which may be understood as that the target feature in the keyword matching rule is a suffix of the keyword), and the like, and the embodiment of the present application is not particularly limited.
It should be understood that the topics are in one-to-one correspondence with the queues, and after determining that the topic corresponding to the first message is the second topic, it may be determined to allocate the first message to the queue corresponding to the second topic.
In the embodiment of the present application, because the first message is the related message corresponding to the second topic, after the consumer terminal subscribes to the second topic, the consumer terminal can receive the message corresponding to the second topic, but the consumer terminal also needs to receive the related message corresponding to the second topic, that is, the first message, so that the keyword conversion rule can be set according to the requirement and the target feature corresponding to the second topic in the keyword matching rule, and the keyword of the first message is converted from the first keyword to the second keyword which can be matched with the target feature corresponding to the second topic according to the keyword conversion rule, so that the consumer terminal can smoothly receive the first message.
It should be understood that, after receiving the first message, the keyword converter first searches for the keyword conversion rule corresponding to the first keyword, and if the keyword conversion rule corresponding to the first keyword can be found, converts the first keyword into the second keyword according to the conversion rule. If the keyword converter does not find the keyword conversion rule corresponding to the first keyword according to the first keyword, the keyword converter discards the first message, and the first message is not distributed to any queue.
In a possible implementation manner, the method for determining that the topic of the first message is the second topic according to the second keyword and the keyword matching rule may include: and determining the topic corresponding to the target feature matched with the second keyword in the keyword matching rule as the second topic.
Exemplarily, when the matching mode is a complete matching mode, if all characters of the character string of the second keyword are the same as all characters of the character string of a certain target feature in the keyword matching rule, determining the topic corresponding to the target feature as the second topic; when the matching mode is the fuzzy matching mode, assuming that the fuzzy matching mode is prefix matching of the keywords, and thus, if the prefix of the character string of the second keyword is the same as a certain target feature (the target feature is a character string in a prefix form) in the keyword matching rule, determining the theme corresponding to the target feature as the second theme.
In a possible implementation manner, the message transmission method provided in the embodiment of the present application may further include: determining whether a first theme exists according to the first keyword and a keyword matching rule; and distributing the first message to a queue corresponding to the first theme under the condition that the first theme exists.
In a possible implementation manner, the method for determining whether the first topic exists according to the first keyword and the keyword matching rule may include: if the first keyword is matched with the first target feature in the keyword matching rule, determining that a first theme exists, wherein the first theme is a theme corresponding to the first target feature; and if the first keyword does not match with the target feature in the keyword matching rule, determining that the first theme does not exist.
In a possible implementation manner, the message transmission method provided in the embodiment of the present application may further include: and sending the first message to a consumer terminal subscribed to the second topic.
In the embodiment of the application, the consumer subscribes to the second topic but not to the first topic, the first message is used as a message corresponding to the first topic and is used as an associated message corresponding to the second topic, and the first message can be smoothly distributed to the queue corresponding to the second topic through the keyword conversion, so that the consumer can receive the first message without subscribing to the first topic.
In one possible implementation, the first theme includes one or more themes.
In a second aspect, an embodiment of the present application provides a message transmission apparatus, including: the device comprises an acquisition module, a conversion module and a distribution module. The obtaining module is used for obtaining a first message from a producer end, the first message is a message corresponding to a first theme and is a related message corresponding to a second theme, and keywords of the first message are first keywords; the conversion module is used for converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keywords is a second topic, and the consumer side subscribes to the second topic; the distribution module is used for distributing the first message to the queue corresponding to the second theme according to the second keyword.
In a possible implementation manner, the message transmission apparatus provided in the embodiment of the present application further includes a determining module, where the determining module is configured to determine, according to a second keyword and a keyword matching rule, that the topic of the first message is a second topic, where the keyword matching rule includes a correspondence between multiple sets of target features and topics; the distribution module is specifically configured to distribute the first message to a queue corresponding to the second topic.
In a possible implementation manner, the determining module is specifically configured to determine, as the second topic, a topic corresponding to a target feature matched with the second keyword in the keyword matching rule.
In a possible implementation manner, the determining module is further configured to determine whether the first topic exists according to the first keyword and a keyword matching rule, where the keyword matching rule includes a correspondence between a plurality of sets of target features and topics; the distribution module is further configured to distribute the first message to a queue corresponding to the first topic under the condition that the first topic exists.
In a possible implementation manner, the determining module is specifically configured to determine that a first topic exists when the first keyword is matched with a first target feature in the keyword matching rule, where the first topic is a topic corresponding to the first target feature; in the event that the first keyword does not match a target feature in the keyword matching rule, determining that the first topic is not present.
In a possible implementation manner, the keyword conversion rule is set according to a target feature in the keyword matching rule.
In a possible implementation manner, the message transmission apparatus provided in the embodiment of the present application may further include a sending module, where the sending module is configured to send the first message to a consumer terminal subscribed to the second topic.
In one possible implementation, the first theme includes one or more themes.
In a third aspect, an embodiment of the present application provides a message transmission apparatus, including: a non-volatile memory and a processor coupled to each other, the processor calling program code stored in the memory to perform the method of any one of the above first aspect and its possible implementations.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which may include computer instructions that, when executed on a computer, cause a message transmission apparatus to perform the method of any one of the above first aspect and possible implementation manners.
In a fifth aspect, embodiments of the present application provide a computer program product including computer instructions, which when run on a computer, cause a message transmission apparatus to perform the method of any one of the first aspect and its possible implementations.
It should be understood that, for the technical effects achieved by the technical solutions of the second aspect to the fifth aspect and the corresponding possible implementations of the embodiments of the present application, reference may be made to the technical effects of the first aspect and the corresponding possible implementations, and details are not described here again.
Drawings
Fig. 1 is a schematic structural diagram of a message transmission system according to an embodiment of the present application;
fig. 2 is a first schematic diagram illustrating a message transmission method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a message transmission method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a message transmission method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a message transmission method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a message transmission method according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a message transmission apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application.
Detailed Description
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first subject and the second subject, etc. are for distinguishing different subjects rather than for describing a particular order of the subjects, and the first keyword and the second keyword, etc. are for distinguishing different keywords rather than for describing a particular order of the keywords.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; the plurality of systems refers to two or more systems.
First, some concepts related to a message transmission method and device provided in the embodiments of the present application are explained.
Message Queue (MQ): generally, there are two ways for a message to go from a sender (also referred to as a producer) to a receiver (also referred to as a consumer), one is instant messaging, i.e., a message sent from one end (a message sender) can reach the other end (a message receiver) immediately; the other is delayed message communication, that is, after a message is sent from one end, the message enters a container for temporary storage, and after a certain condition is met, the message is sent to the other end by the container. One specific implementation of this container is an MQ, which is seen to be an intermediary between the sender and the recipient of the message.
In the embodiment of the application, a sender generates a message and writes the message into MQ; the recipient may retrieve the message from the MQ or subscribe to some of the messages in the MQ. In the following embodiments, the devices that generate and write messages to MQs are collectively referred to as the producer side, and the devices that receive or subscribe to messages are collectively referred to as the consumer side, so that the producer side, the consumer side, and the MQs form a consumer-producer model.
Subject matter: each message has a subject (i.e. topic), and a subject of a message may include one subject or multiple subjects, in this embodiment of the application, each subject has a corresponding message (which may be understood as a direct subject message of the subject), and each subject may also have a corresponding associated message (which is not a direct subject message of the subject, but the consumer side also needs to receive the associated message when receiving the message corresponding to the subject), it should be noted that an associated message corresponding to one subject is actually also a message, and is not substantially different from a message, and only for the subject, the message and the associated message have different functions.
Explaining the concept of the association message by taking a scene on the cloud platform as an example, a computing node (consumer end) bearing a virtual machine needs to acquire a configuration change message of the virtual machine and also needs to acquire configuration information of a subnet to which the virtual machine belongs or a security group to which the virtual machine belongs, and if the configuration change message of the virtual machine belongs to the topic-VM1, the configuration information of the subnet to which the virtual machine belongs or the security group to which the virtual machine belongs is the association message corresponding to the topic-VM 1.
It can be understood that in the embodiment of the present application, both the producer side and the consumer side may be terminal devices or internet of things devices, the MQ is an application program (that is, the MQ is implemented by software), for example, the MQ may be carried on a cloud platform, or may be carried on a server (referred to as a message queue server in this case), and complex computations such as processing of messages may be implemented on the MQ. Specifically, the MQ includes one or more components, such as a message exchanger (exchange) and a queue (queue), and after receiving a message, the message exchanger is responsible for distributing (delivering or routing) the message to the corresponding queue; the queue is a message queue carrier used for storing messages, a message can be released to one or more queues, and a binding mechanism is arranged between the message exchanger and the queue, namely the message exchanger and the queue are bound through a certain routing rule. For example, a key factor in the binding mechanism is a key (key) of a message, and the message exchanger may distribute the message to a corresponding queue according to the key of the message, specifically, may determine a topic of the message according to the key of the message, and further distribute the message to the queue corresponding to the topic.
Based on the problems existing in the background art, the embodiments of the present application provide a message transmission method, where a message queue server obtains a first message from a producer, where the first message is a message corresponding to a first topic and is a related message corresponding to a second topic, and a keyword of the first message is a first keyword; converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keyword is a second topic, and the consumer side subscribes to the second topic; and distributing the first message to the queue corresponding to the second topic according to the second keyword, and by the technical scheme of the embodiment of the application, the transmission of the associated message corresponding to a certain topic can be smoothly completed, so that the message transmission flow is simplified, and the message transmission efficiency is improved.
The message transmission method provided in the embodiment of the present application may be applied to a message transmission system, as shown in fig. 1, the message transmission system includes a producer end 10, an MQ 11, and a consumer end (illustrated by three consumer ends in fig. 1, which are respectively denoted as a consumer end 12a, a consumer end 12b, and a consumer end 12c), where the MQ 11 may include a message exchanger, a keyword converter, and a queue, a keyword matching rule is preconfigured in the message exchanger, and a keyword conversion rule is configured in the keyword converter. Optionally, the message transmission system may include one or more message exchangers and may also include one or more queues.
The producer terminal 10 generates a message and writes the message into the MQ 11, the message generated by the producer terminal 10 contains a keyword of the message, the message exchanger matches the keyword of the message received by the message exchanger according to a preset keyword matching rule to determine the theme of the message received by the message exchanger, when the keyword of the message meets the keyword matching rule, the theme of the message is determined to exist, the message exchanger distributes the message to a queue corresponding to the theme, and when the keyword of the message does not meet the keyword matching rule, the theme of the message is determined to not exist.
In the embodiment of the present application, the message exchanger interacts with the keyword converter, and the keyword converter converts the keyword of a certain message according to the keyword conversion rule, so that the converted keyword satisfies the keyword matching rule, and thus another new topic of the message can be determined, and the message is sent to the queue corresponding to the new topic, and the specific details will be described in detail in the following embodiments.
The message transmission method provided by the embodiment of the application can be applied to a scene that a consumer terminal needs to receive a related message corresponding to a certain theme (for example, theme 2), but the consumer terminal does not subscribe to the theme of the related message (for example, the theme of the related message is theme 1), so that the consumer terminal can smoothly receive the related message corresponding to the certain theme. For example, if the associated message is denoted as message 1, it can be seen that the message 1 is the associated message corresponding to the topic2, and the message 1 is the message corresponding to the topic1, and generally, the consumer subscribes to which topic, and can receive the message corresponding to the topic, for example, the consumer subscribes to the topic2, and can receive the message corresponding to the topic2, and because the consumer does not subscribe to the topic1, the consumer cannot receive the message corresponding to the topic1, that is, the consumer cannot receive the message 1. That is to say, in the prior art, when the consumer end does not subscribe to the topic of the associated message corresponding to the topic2 (i.e. the topic 1), the consumer end cannot receive the associated message corresponding to the topic2 (i.e. cannot receive the message 1), and the technical problem solved by the embodiment of the present application is: and under the condition that the consumer side does not subscribe the topic of the associated message corresponding to the topic2, how to receive the associated message by the consumer side is realized.
In this embodiment of the present application, taking MQ carried on a server as an example to introduce a message transmission method, and hereinafter, referring to the server carrying MQ as a message queue server, in conjunction with the above message transmission system, as shown in fig. 2, from the perspective of the message queue server (i.e. taking the message queue server as an execution subject), the message transmission method provided in this embodiment of the present application may include S101 to S103:
s101, the message queue server acquires a first message from a producer.
The first message is a message corresponding to a first topic and is an associated message corresponding to a second topic, the keyword of the first message is a first keyword, and the consumer side subscribes to the second topic. The topic of one message may include one or more topics, and the first topic is a topic of a first message, and the first topic includes one or more topics.
In the embodiment of the application, the message generated by the producer end contains the keyword of the message, the keyword is used for identifying the subject of the message, that is, is used for determining the subject of the message, and then the message queue server distributes the message to the queue corresponding to the subject of the message, so as to complete the correct forwarding of the message.
S102, the message queue server converts the keywords of the first message from the first keywords to the second keywords according to the keyword conversion rule.
And the topic of the message corresponding to the second keyword is a second topic.
In the embodiment of the present application, a relevant keyword conversion rule is preconfigured in the message queue server, and specifically, the keyword conversion rule is configured on a keyword converter in the message queue server. Alternatively, the keyword conversion rule may be issued to the keyword converter by a control device (e.g., a controller), and the keyword converter may then perform the keyword conversion process. Specifically, after the message exchanger receives the first message, the message exchanger sends the first message to the keyword converter, the keyword converter converts the keyword of the first message from the first keyword to the second keyword, and the keyword converter sends the first message to the message exchanger. It should be noted that the key carried in the first message sent by the key translator to the message exchanger has changed, and the key is no longer the first key but the second key.
It should be noted that, in this embodiment of the application, a keyword conversion rule may be set according to actual usage requirements, so as to flexibly specify that a keyword to be converted may be converted into a keyword that can be matched with a certain topic, for example, the keyword to be converted is a first keyword, the converted keyword is a second keyword, the keyword conversion rule specifies that the first keyword may be converted into a keyword that can be matched with a second topic, where the keyword that can be matched with the second topic is the second keyword.
Optionally, in this embodiment of the present application, the keyword conversion rule is set according to a target feature in the keyword matching rule. The keyword matching rule is pre-configured in the message queue server, specifically, the keyword matching rule is configured in a message exchanger of the message queue server, and the keyword matching rule is used for determining the topic of the first message according to the keyword of the first message received by the message queue server.
Firstly, a keyword matching rule is briefly introduced, the keyword matching rule comprises a plurality of groups of corresponding relations between target features and topics, and one group of corresponding relations comprises the topics corresponding to the target features. Optionally, in this embodiment of the application, the target feature may be all contents of the keyword, or may be a prefix of the keyword or a suffix of the keyword, and specifically, the target feature may be determined according to a use requirement, and this embodiment of the application is not limited.
In the embodiment of the present application, the keyword of the message may be in the form of a character string, the prefix of the keyword may be the first N characters (N ≧ 1) of the character string of the keyword, the suffix of the keyword may be the last M characters (M ≧ 1) of the keyword, the prefix of the keyword may be represented by "x", and the suffix of the keyword may be represented by "y", for example, the keyword of a certain message is b.
Optionally, in this embodiment of the present application, the keyword matching rule may be flexibly set, and may be set such that one target feature may correspond to one topic, or one target feature may also correspond to multiple topics, or multiple target features may also be set such that one topic corresponds to one topic.
Illustratively, several keyword matching rules are illustrated in Table 1 below.
TABLE 1
Target feature Themes
A prefix a. Topic1,Topic3
A prefix b. Topic2
Suffix. c Topic2
The prefix d. Topic2
A prefix e. Topic4
As can be seen from table 1, when the target feature is the prefix e, the target feature corresponds to a Topic of Topic4 (i.e. the above-mentioned case where one target feature corresponds to one Topic); when the target feature is prefix a, the target feature corresponds to two topics, i.e., Topic1 and Topic3 (i.e., the above-mentioned case where one target feature corresponds to multiple topics).
In table 1, it can be seen that the prefix b, the prefix d, and the suffix c all correspond to one Topic, i.e. Topic2 (i.e. the above-mentioned multiple target features correspond to one Topic), and when multiple target features correspond to one Topic, the multiple target features may be the same type of target features, or may be different types of target features, for example, the prefix b and the prefix d both correspond to Topic2, and the two target features are the same type of target features, and are prefixes of keywords; the prefix b and suffix c both correspond to Topic2, which are different types of target features, one target feature being the prefix and one target feature being the suffix.
In combination with the introduction of the keyword matching rule, the consumer terminal has subscribed to the second topic, so that the keyword matching rule configured by the message queue server includes a matching rule corresponding to the second topic, that is, the preconfigured keyword matching rule includes a corresponding relationship between a certain target feature and the second topic, and the second keyword can be matched with the target feature.
Based on the description of the keyword matching rule, in the embodiment of the present application, because the first message is the related message corresponding to the second topic, and after the consumer terminal subscribes to the second topic, the consumer terminal can receive the message corresponding to the second topic, but the consumer terminal also needs to receive the related message corresponding to the second topic, that is, the first message, so that the keyword conversion rule can be set according to the requirement and the target feature corresponding to the second topic in the keyword matching rule, and the keyword of the first message is converted from the first keyword to the second keyword which can be matched with the target feature corresponding to the second topic according to the keyword conversion rule, so that the consumer terminal can smoothly receive the first message.
Illustratively, in combination with the keyword matching rule shown in table 1, for example, the second Topic is Topic1, and the keyword (i.e. the first keyword) of the first message is g. f, the keyword transformation rule set according to the target feature corresponding to Topic1 may be: and adding a prefix a to the first keyword, wherein according to the conversion rule, the converted second keyword of the first keyword is a.g. For another example, the second Topic is Topic2, the keyword of the first message is g. f, and the keyword conversion rule set according to the target feature corresponding to Topic2 may be: adding a prefix b to the first keyword, so that the second keyword after the first keyword is converted is b.g. f; or the keyword conversion rule may be: adding a prefix d to the first keyword, so that the second keyword after the first keyword is converted is d.g. f; or the keyword conversion rule may be: c, adding a suffix to the first keyword, and then g. times. f.c is the second keyword after the first keyword is converted, it can be known that, when the second Topic is Topic2, the keyword converter can perform keyword conversion according to any one of the above 3 keyword conversion rules, and the embodiment of the present application is not limited.
S103, the message queue server distributes the first message to a queue corresponding to the second subject according to the second keyword.
As can be seen from the description of the above embodiment, S103 is performed by the message exchanger in the message queue server.
In this embodiment of the present application, because the second keyword is converted according to the target feature corresponding to the configured topic in the message queue server, and because the keyword of the first message has become the second keyword, and the second keyword can be matched with the target feature corresponding to the second topic in the keyword matching rule, thus establishing the corresponding relationship between the first message and the second topic, it may be determined that the topic corresponding to the message (i.e., the first message) corresponding to the second keyword is the topic (i.e., the second topic) corresponding to the target feature, that is, it may be determined that the topic of the first message is the second topic.
It should be understood that, after receiving the first message, the keyword converter first searches for the keyword conversion rule corresponding to the first keyword, and if the keyword conversion rule corresponding to the first keyword can be found, the keyword converter converts the first keyword into the second keyword according to the keyword conversion rule. If the keyword converter does not find the keyword conversion rule corresponding to the first keyword according to the first keyword, the keyword converter discards the first message, and the first message is not distributed to any queue.
Optionally, with reference to fig. 2, as shown in fig. 3, the above S103 may be specifically implemented by S1031 to S1032:
and S1031, the message queue server determines the subject of the first message as a second subject according to the second keyword and the keyword matching rule.
Optionally, in this embodiment of the application, in the process of determining the topic of the message according to the keyword matching rule, the topic of the message corresponding to the keyword may be determined in a complete matching manner or a fuzzy matching manner, where the fuzzy matching manner may include prefix matching of the keyword (which may be understood as a prefix of the keyword for the target feature in the keyword matching rule) or suffix matching of the keyword (which may be understood as a suffix of the keyword for the target feature in the keyword matching rule), and the like, and this embodiment of the application is not particularly limited.
With reference to fig. 3, as shown in fig. 4, S1031 may specifically be implemented by S1031 a:
and S1031a, determining the topic corresponding to the target feature matched with the second keyword in the keyword matching rule as the second topic.
In an implementation manner, when the matching manner is a complete matching manner, if all characters of the character string of the second keyword are the same as all characters of the character string of a certain target feature in the keyword matching rule, determining the topic corresponding to the target feature as a second topic; in another implementation manner, when the matching manner is the fuzzy matching manner, it is assumed that the fuzzy matching manner is prefix matching of the keyword, and thus, a topic corresponding to a target feature (the target feature is a character string in a prefix form) in the second keyword is determined as the second topic if the prefix of the character string of the second keyword is the same as a certain target feature in the keyword matching rule.
In connection with the above description of the keyword matching rule in S102, for example, still in connection with the keyword matching rule shown in table 1, the second Topic is Topic1, the keyword of the first message is g. Adding a prefix a to the first keyword, according to the conversion rule, the second keyword after the conversion of the first keyword is a.g. f (the keyword of the first message becomes a.g. f), and further according to the second keyword a.g. f and the keyword matching rule, the second keyword a.g. f can be matched with the target feature a. (because the prefix a exists in the second keyword a.g. f), and because the Topic corresponding to the target feature a. is Topic1, the Topic corresponding to the first message (i.e. the second Topic) is Topic 1.
S1032, the message queue server distributes the first message to a queue corresponding to the second theme.
After determining that the topic corresponding to the first message is the second topic, the first message may be allocated to a queue corresponding to the second topic. It should be noted that, in the embodiment of the present application, the topics correspond to the queues one to one, and table 2 below is an example of a correspondence relationship between the topics and the queues.
TABLE 2
Themes Queue
Topic1 Queue1
Topic2 Queue2
Topic3 Queue3
Topic4 Queue4
Illustratively, in conjunction with table 2 above, assuming that the second Topic is Topic2, knowing that the Queue corresponding to Topic2 is Queue2, the message exchanger assigns the first message to Queue 2.
Table 3 illustrates several cases of topics subscribed by the consumer side.
TABLE 3
Figure BDA0001991240970000091
With reference to table 2 and table 3, a Topic corresponds to a Queue, and a consumer can subscribe to one Topic or multiple topics, and then a consumer can correspond to one Queue or multiple queues, for example, if the consumer subscribes to a Topic of Topic2, the consumer can obtain a message and \ or an associated message corresponding to Topic2 from Queue2 corresponding to Topic 2; for another example, if the consumer terminal subscribes to Topic1 and subscribes to Topic3, the consumer terminal may obtain the message \ or the associated message corresponding to Topic1 from Queue1 corresponding to Topic1, and obtain the message \ or the associated message corresponding to Topic3 from Queue3 corresponding to Topic 3.
Certainly, different consumers may subscribe to the same Topic, in table 3, both consumer terminal 1 and consumer terminal 2 subscribe to Topic1 and Topic3, Topic1 corresponds to Queue1, and Topic3 corresponds to Queue3, then consumer terminal 1 acquires message \ or associated message corresponding to Topic1 from Queue1, acquires message \ or associated message corresponding to Topic3 from Queue3, and consumer terminal 2 acquires message \ or associated message corresponding to Topic1 from Queue1, and acquires message \ or associated message corresponding to Topic3 from Queue 3.
Optionally, with reference to fig. 2, as shown in fig. 5, after S103, the message transmission method provided in the embodiment of the present application may further include S104:
s104, the message queue server sends the first message to a consumer terminal subscribed with the second theme.
In the embodiment of the application, the consumer subscribes to the second topic but not to the first topic, the first message is used as a message corresponding to the first topic and is used as an associated message corresponding to the second topic, and the first message can be smoothly distributed to the queue corresponding to the second topic through the keyword conversion, so that the consumer can receive the first message without subscribing to the first topic.
Optionally, with reference to fig. 5, as shown in fig. 6, after the above S101, the message transmission method provided in the embodiment of the present application may further include S105:
s105, the message queue server determines whether the first theme exists according to the first keyword and the keyword matching rule.
In this embodiment of the application, the S105 may specifically include S1051 or S1052:
s1051, if the first keyword is matched with the first target feature in the keyword matching rule, determining that the first theme exists, wherein the first theme is the theme corresponding to the first target feature.
In combination with the description of the keyword matching rule, the description is given by way of example, assuming that the preconfigured keyword matching rule is recorded as the keyword matching rule shown in table 1, if the keyword of the first message received by the message queue server is b., according to the keyword matching rule in table 1 and the prefix b. of the keyword of the first message, the keyword can be matched with a target feature (prefix b.) in the keyword matching rule, at this time, the first target feature is b., so that it can be determined that a first Topic exists, and the first Topic is a Topic corresponding to the first target feature b., i.e., Topic 2.
S1052, if the first keyword does not match with the target feature in the keyword matching rule, determining that the first theme does not exist.
Similarly, assuming that the preconfigured keyword matching rule is recorded as the keyword matching rule shown in table 1, if the keyword of the first message received by the message queue server is g.
In the embodiment of the present application, as shown in fig. 6, when the message queue server determines that the first topic exists according to the first keyword, the message queue server executes the following S106.
S106, the message queue server distributes the first message to a queue corresponding to the first subject according to the first keyword.
In the embodiment of the application, a message exchanger in a message queue server determines that a topic of a first message exists according to a first keyword, determines that the topic of the first message is a first topic, and further allocates the first message to a queue corresponding to the first topic according to a corresponding relationship between the topic and the queue.
For the description about S105 and S106, reference may be made to the description about S1031 and S1032 in the above embodiments, and details are not repeated here.
It can be understood that, no matter whether the first topic exists, the message queue server executes a keyword conversion process to convert the keyword of the first message from the first keyword to the second keyword, so as to expand the topic of the first message, that is, the topic of the first message also includes the second topic, and thus, the first message can be distributed to a queue corresponding to the second topic.
In the message transmission method provided by the embodiment of the application, a message queue server acquires a first message from a producer, the first message is a message corresponding to a first topic and is a related message corresponding to a second topic, and a keyword of the first message is a first keyword; converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keyword is a second topic, and the consumer side subscribes to the second topic; and distributing the first message to a queue corresponding to the second theme according to the second keyword. Because the keyword conversion can be completed in the message queue server, the transmission of the associated message corresponding to a certain theme can be smoothly completed, so that the message transmission flow is simplified, and the message transmission efficiency is improved.
The above description mainly introduces the scheme provided in the embodiment of the present application from the perspective of a message transmission device (message queue server). It is understood that the message transmission device includes hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the message transmission apparatus may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 7 shows a schematic diagram of a possible structure of the message transmission apparatus according to the foregoing embodiment, and as shown in fig. 7, the message transmission apparatus 1000 may include: an acquisition module 1001, a conversion module 1002, and an assignment module 1003. The obtaining module 1001 may be configured to support the message transmission apparatus 1000 to execute S101 in the foregoing method embodiment; the conversion module 1002 may be configured to support the message transmission apparatus 1000 to execute S102 in the foregoing method embodiment; the allocating module 1003 may be configured to support the message transmitting apparatus 1000 to execute S103 (including S1032) and S106 in the foregoing method embodiment.
Optionally, as shown in fig. 7, the message transmitting apparatus 1000 according to the embodiment of the present application may further include a determining module 1004 and a sending module 1005, where the determining module 1004 is configured to support the message transmitting apparatus 1000 to perform S1031(S1031 may be specifically implemented by S1031 a), S105 (including S1051 or S1052) in the foregoing method embodiment; the sending module 1005 is configured to support the message transmission apparatus 1000 to execute S104 in the foregoing method embodiment. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Fig. 8 shows a schematic diagram of a possible structure of the message transmission device according to the above-described exemplary embodiment, in the case of an integrated unit. As shown in fig. 8, the message transmitting apparatus 2000 may include: a processing module 2001 and a communication module 2002. The processing module 2001 may be used to control and manage the actions of the message transmitting apparatus 2000, for example, the processing module 2001 supports the message transmitting apparatus 2000 to perform S101, S102, S103 (including S1031 to S1032), S105 (including S1051 or S1052), and S106 in the above-described method embodiments. The communication module 2002 may be configured to support the message transmitting apparatus 2000 to communicate with other network entities, for example, the communication module 2002 supports the message transmitting apparatus 2000 to execute S104 in the above method embodiment. Optionally, as shown in fig. 8, the message transmission apparatus 2000 may further include a storage module 2003 for storing program codes and data of the message transmission apparatus 2000.
The processing module 2001 may be a processor or a controller, and may be, for example, a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure of the embodiments of the application. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like. The communication module 2002 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 2003 may be a memory.
When the processing module 2001 is a processor, the communication module 2002 is a transceiver, and the storage module 2003 is a memory, the processor, the transceiver, and the memory may be connected by a bus. The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may 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 loaded and executed on a computer, produce, in whole or in part, the processes or functions described in the embodiments of the application. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on 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 one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., Solid State Drive (SSD)), among others.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A method for message transmission, comprising:
acquiring a first message from a producer, wherein the first message is a message corresponding to a first theme and is a related message corresponding to a second theme, and a keyword of the first message is a first keyword;
converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keyword is the second topic, and the consumer side subscribes to the second topic;
and distributing the first message to a queue corresponding to the second theme according to the second keyword.
2. The method of claim 1, wherein the allocating the first message to the queue corresponding to the second topic according to the second keyword comprises:
determining the topic of the first message as the second topic according to the second keyword and a keyword matching rule, wherein the keyword matching rule comprises a corresponding relation between a plurality of groups of target features and topics;
and distributing the first message to a queue corresponding to the second theme.
3. The method of claim 2, wherein determining that the subject of the first message is the second subject according to the second keyword and a keyword matching rule comprises:
and determining the topic corresponding to the target feature matched with the second keyword in the keyword matching rule as the second topic.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
determining whether the first theme exists according to the first keyword and the keyword matching rule;
and if the first theme exists, distributing the first message to a queue corresponding to the first theme.
5. The method of claim 4, wherein said determining whether the first topic exists according to the first keyword and the keyword matching rule comprises:
if the first keyword is matched with a first target feature in the keyword matching rule, determining that the first theme exists, wherein the first theme is a theme corresponding to the first target feature;
and if the first keyword is not matched with the target feature in the keyword matching rule, determining that the first theme does not exist.
6. The method according to any one of claims 2 to 5,
the keyword conversion rule is set according to the target feature in the keyword matching rule.
7. The method according to any one of claims 1 to 6, further comprising:
and sending the first message to a consumer terminal subscribed to the second theme.
8. The method according to any one of claims 1 to 7,
the first theme includes one or more themes.
9. A message transmission apparatus, comprising: the system comprises an acquisition module, a conversion module and a distribution module;
the obtaining module is used for obtaining a first message from a producer end, wherein the first message is a message corresponding to a first theme and is a related message corresponding to a second theme, and a keyword of the first message is a first keyword;
the conversion module is used for converting the keywords of the first message from the first keywords to second keywords according to a keyword conversion rule, wherein the topic of the message corresponding to the second keyword is the second topic, and the consumer side subscribes to the second topic;
the distribution module is configured to distribute the first message to a queue corresponding to the second topic according to the second keyword.
10. The apparatus of claim 9, further comprising a determination module;
the determining module is configured to determine, according to the second keyword and a keyword matching rule, that the topic of the first message is the second topic, where the keyword matching rule includes correspondence between multiple sets of target features and topics;
the allocating module is specifically configured to allocate the first message to a queue corresponding to the second topic.
11. The apparatus of claim 10,
the determining module is specifically configured to determine, as the second topic, a topic corresponding to the target feature matched with the second keyword in the keyword matching rule.
12. The apparatus of claim 10 or 11,
the determining module is further configured to determine whether the first topic exists according to the first keyword and the keyword matching rule;
the allocating module is further configured to allocate the first message to a queue corresponding to the first topic under the condition that the first topic exists.
13. The apparatus of claim 12,
the determining module is specifically configured to determine that the first topic exists when the first keyword is matched with a first target feature in the keyword matching rule, where the first topic is a topic corresponding to the first target feature; determining that the first topic does not exist if the first keyword does not match a target feature in the keyword matching rule.
14. The apparatus according to any one of claims 10 to 13,
the keyword conversion rule is set according to the target feature in the keyword matching rule.
15. The apparatus according to any one of claims 9 to 14, wherein the apparatus further comprises a transmitting module;
the sending module is used for sending the first message to a consumer end subscribed to the second theme.
16. The apparatus of any one of claims 9 to 15,
the first theme includes one or more themes.
17. A message transmission apparatus, comprising: a non-volatile memory and a processor coupled to each other, the processor calling program code stored in the memory to perform the method of any of claims 1 to 8.
18. A computer-readable storage medium, characterized in that it comprises computer instructions which, when run on a computer, cause a message transmission apparatus to perform the method according to any one of claims 1 to 8.
CN201910181044.1A 2019-03-11 2019-03-11 Message transmission method and device Active CN111679918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910181044.1A CN111679918B (en) 2019-03-11 2019-03-11 Message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910181044.1A CN111679918B (en) 2019-03-11 2019-03-11 Message transmission method and device

Publications (2)

Publication Number Publication Date
CN111679918A true CN111679918A (en) 2020-09-18
CN111679918B CN111679918B (en) 2024-04-26

Family

ID=72451230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910181044.1A Active CN111679918B (en) 2019-03-11 2019-03-11 Message transmission method and device

Country Status (1)

Country Link
CN (1) CN111679918B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596933A (en) * 2021-02-26 2021-04-02 全时云商务服务股份有限公司 Micro-service system based on message event communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761141A (en) * 2013-12-13 2014-04-30 北京奇虎科技有限公司 Method and device for realizing message queue
CN105871907A (en) * 2016-05-26 2016-08-17 国云科技股份有限公司 Universal method for creating proxy service based on AMQP (advanced message queuing protocol)
CN107835203A (en) * 2017-08-09 2018-03-23 平安壹钱包电子商务有限公司 Method, apparatus, storage medium and the terminal of message delivery of packets
CN108337116A (en) * 2018-01-30 2018-07-27 新华三技术有限公司 Message order-preserving method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761141A (en) * 2013-12-13 2014-04-30 北京奇虎科技有限公司 Method and device for realizing message queue
CN105871907A (en) * 2016-05-26 2016-08-17 国云科技股份有限公司 Universal method for creating proxy service based on AMQP (advanced message queuing protocol)
CN107835203A (en) * 2017-08-09 2018-03-23 平安壹钱包电子商务有限公司 Method, apparatus, storage medium and the terminal of message delivery of packets
CN108337116A (en) * 2018-01-30 2018-07-27 新华三技术有限公司 Message order-preserving method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596933A (en) * 2021-02-26 2021-04-02 全时云商务服务股份有限公司 Micro-service system based on message event communication
CN112596933B (en) * 2021-02-26 2021-05-14 全时云商务服务股份有限公司 Micro-service system based on message event communication

Also Published As

Publication number Publication date
CN111679918B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN101616083B (en) Message forwarding method and device
CN109194736B (en) Message duplicate removal method and device, electronic equipment, medium and unmanned vehicle
CN104468401A (en) Message processing method and device
CN101894092B (en) Multi-core CPU and inter-core communication method thereof
CN110225146B (en) Intranet and extranet mapping method and device, electronic equipment, medium and video conference system
JPH09223089A (en) Method and device for making packet data difusable to plural bus targets
CN111163130A (en) Network service system and data transmission method thereof
US8832215B2 (en) Load-balancing in replication engine of directory server
CN111064786B (en) Account identifier management method and device
CN107579929B (en) Method, system and related device for setting reliable connection communication queue pair
CN110290228B (en) Internet protocol IP address allocation method and device
CN111679918B (en) Message transmission method and device
CN108153494B (en) A kind of I/O request processing method and processing device
CN109151033A (en) Communication means, device, electronic equipment and storage medium based on distributed system
CN106100953B (en) PCIe device shares the generation method of network, apparatus and system
CN114257545B (en) Message forwarding method and device
CN101547209B (en) Method and device for updating information table
CN115189977B (en) Broadcast transmission method, system and medium based on AXI protocol
CN103905375B (en) Data encryption request distribution method and device in concentrating type data encryption system
CN107682573B (en) High-concurrency outbound method, system, equipment and storage medium
CN106330492A (en) Method, device and system of configuring user equipment forwarding table
CN115408328A (en) Many-core system, processing method and processing unit
CN113918504A (en) Method and device for realizing isolation group
US8316169B2 (en) Physical to hierarchical bus translation
WO2009109510A1 (en) Method and system for message delivery

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Applicant after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant