Message Publishing and Subscribing Method and Apparatus
First Claim
Patent Images
1. A message publishing method comprising:
- obtaining a message that a publisher has sent to a dummy topic corresponding to the publisher;
searching for, according to a stored routing rule, all transmission paths with the dummy topic corresponding to the publisher being a start point and the dummy topic corresponding to any one subscriber being an end point, wherein the dummy topic is configured to forward a message between the actual topic, and wherein the actual topic is configured to forward a message between the publisher and the subscriber;
transmitting the message or identification information corresponding to the message on a found transmission path when the transmission path with the dummy topic corresponding to the publisher being the start point and the dummy topic corresponding to any one subscriber being the end point is found; and
sending the message to a subscriber corresponding to the end point of the transmission path after the message or the identification information corresponding to the message is transmitted to an end point of each transmission path.
1 Assignment
0 Petitions
Accused Products
Abstract
A message publishing and subscribing method and apparatus, which relate to the information processing field and provide higher information transmission efficiency and better flexibility mainly by providing a corresponding dummy topic in a message broker for a publisher and a subscriber or by performing semantic recognition in the message broker for the publisher and the subscriber.
-
Citations
22 Claims
-
1. A message publishing method comprising:
-
obtaining a message that a publisher has sent to a dummy topic corresponding to the publisher; searching for, according to a stored routing rule, all transmission paths with the dummy topic corresponding to the publisher being a start point and the dummy topic corresponding to any one subscriber being an end point, wherein the dummy topic is configured to forward a message between the actual topic, and wherein the actual topic is configured to forward a message between the publisher and the subscriber; transmitting the message or identification information corresponding to the message on a found transmission path when the transmission path with the dummy topic corresponding to the publisher being the start point and the dummy topic corresponding to any one subscriber being the end point is found; and sending the message to a subscriber corresponding to the end point of the transmission path after the message or the identification information corresponding to the message is transmitted to an end point of each transmission path. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A message subscribing method comprising:
-
obtaining a message that a subscriber has sent to a dummy topic corresponding to the subscriber; and creating, according to the obtained message, a routing rule between the dummy topic corresponding to the subscriber and a target actual topic, wherein the target actual topic is an actual topic that is currently subscribed to by the subscriber, and wherein the dummy topic is configured to forward a message between the actual topic and a publisher. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A message publishing apparatus comprising:
-
an information processing module configured to obtain a message that a publisher has sent to a dummy topic corresponding to the publisher; a topic module configured to search for, according to a stored routing rule, all transmission paths with the dummy topic corresponding to the publisher being a start point and the dummy topic corresponding to any one subscriber being an end point, wherein the dummy topic is configured to forward a message between the actual topic and the publisher, and the actual topic is configured to forward a message between the publisher and the subscriber; and a transmission module configured to transmit the message or identification information corresponding to the message on a found transmission path when the topic module finds the transmission path with the dummy topic corresponding to the publisher being the start point and the dummy topic corresponding to any one subscriber being the end point, and send the message to a subscriber corresponding to an end point of the transmission path when the message or the identification information corresponding to the message is transmitted to the end point of each transmission path. - View Dependent Claims (13, 14, 15, 16, 17, 21, 22)
-
-
18. A message subscribing apparatus, comprising:
-
an obtaining module configured to obtain a message that a subscriber has sent to a dummy topic corresponding to the subscriber; a creating module configured to create, according to the obtained message that is sent by the subscriber, a routing rule between the dummy topic corresponding to the subscriber and a target actual topic, wherein the target actual topic is an actual topic that is currently subscribed to by the subscriber, and wherein the dummy topic is configured to forward a message between the actual topic and a publisher. - View Dependent Claims (19, 20)
-
Specification