WO2017128713A1 - 订阅消息的发布方法及装置 - Google Patents

订阅消息的发布方法及装置 Download PDF

Info

Publication number
WO2017128713A1
WO2017128713A1 PCT/CN2016/096921 CN2016096921W WO2017128713A1 WO 2017128713 A1 WO2017128713 A1 WO 2017128713A1 CN 2016096921 W CN2016096921 W CN 2016096921W WO 2017128713 A1 WO2017128713 A1 WO 2017128713A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
subscription
subscriber
subscription message
routing path
Prior art date
Application number
PCT/CN2016/096921
Other languages
English (en)
French (fr)
Inventor
严菊明
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017128713A1 publication Critical patent/WO2017128713A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for publishing a subscription message.
  • the message queue middleware based on the publish/subscribe mechanism provides a loosely coupled method for distributed applications constructed in an asynchronous manner. It simplifies the transfer of data between applications, shields the underlying heterogeneous operating system and network platform, provides consistent communication standards and application development, and ensures reliable, cross-platform information transfer and data exchange in distributed computing network environments.
  • the server delivers the message
  • the routing relationship is generated by the client notification server, and it is difficult for the third party to modify it.
  • you need to modify the delivery path of a packet in some scenarios you cannot use the client program to re-generate the routing relationship. This prevents you from using the scenario.
  • the matching algorithm is also simply fuzzy matching by the publisher's publishing keyword and the recipient's receiving keyword, lacking more effective service-based data. Support for custom message delivery paths.
  • the embodiment of the invention provides a method and a device for publishing a subscription message, so as to at least solve the problem that the delay caused by the server is used for transiting when sending a subscription message in the related art.
  • a method for publishing a subscription message includes: receiving a request message sent by a message sender for sending a subscription message; and instructing the message sender to directly publish the subscription message to Subscriber.
  • the indicating that the message sender directly issues the subscription message to the subscriber includes: searching for a subscriber of the subscription message according to the pre-stored subscription information and a routing path for sending the subscription message; indicating the message The sender directly issues the subscription message to the subscriber via the routing path.
  • the method before searching for the subscriber of the subscription message and the routing path of sending the subscription message according to the pre-stored subscription information, the method further includes: receiving subscription information sent by one or more of the subscribers, where The subscription information includes at least one of the following: a subscription message that the subscriber needs to receive, a routing path that the subscriber receives the subscription message, and the subscription information is saved as the pre-stored subscription information.
  • the method further includes: receiving, for modifying the subscriber, and/or modifying the a first request message of the routing path; modifying the subscriber according to the first request message to obtain a designated subscriber and/or modifying the routing path to obtain a specified routing path. Determining the designated subscriber and the routing path as a recipient of the subscription message and/or a routing path to publish the subscription message.
  • the method further includes: receiving a second request message for adding a subscription to the subscription message; Requesting to add a designated subscriber that receives the subscription message; indicating the cancellation The sender sends the subscription message to the added specified subscriber.
  • the method further includes: determining whether the second request indicates that the subscription message is offloaded and sent to the Referring to the subscriber and the designated subscriber, when the judgment result is yes, the subscription message is distributed to the subscriber and the designated subscriber according to the weight value information indicated by the second request.
  • the first request message and/or the second request message sent by the command line interface Cli or the web client is received.
  • a device for distributing a subscription message including: a first receiving module, configured to receive a request message sent by a message sender for sending a subscription message; a first indication module, setting To instruct the message sender to publish the subscription message directly to the subscriber.
  • the first indication module includes: a searching unit, configured to search for a subscriber of the subscription message and a routing path for sending the subscription message according to the pre-stored subscription information; and an indication unit, configured to indicate the sender of the message The subscription message is directly published to the subscriber through the routing path.
  • the first indication module further includes: a first receiving unit, configured to receive, before the searching unit searches for a subscriber of the subscription message according to the pre-stored subscription information, and sends a routing path of the subscription message, Or subscription information sent by the plurality of subscribers, wherein the subscription information comprises at least one of: a subscription message that the subscriber needs to receive, a routing path that the subscriber receives the subscription message, a saving unit, and is set to The subscription information is saved as the pre-stored subscription information.
  • a first receiving unit configured to receive, before the searching unit searches for a subscriber of the subscription message according to the pre-stored subscription information, and sends a routing path of the subscription message, Or subscription information sent by the plurality of subscribers, wherein the subscription information comprises at least one of: a subscription message that the subscriber needs to receive, a routing path that the subscriber receives the subscription message, a saving unit, and is set to The subscription information is saved as the pre-stored subscription information.
  • the first indication module further includes: a second receiving unit, configured to: after the searching unit searches for a subscriber of the subscription message according to the pre-stored subscription information, and sends a routing path of the subscription message, Modifying the subscriber and/or modifying the first request message of the routing path; the modifying unit is configured to modify the subscriber according to the first request message to obtain a designated subscriber and/or modify the routing path to obtain Specify the routing path.
  • Determine unit set The routing path for determining the designated subscriber and the routing path as the recipient of the subscription message and/or publishing the subscription message.
  • the device further includes: a second receiving module, configured to receive, before adding, by the indication module, the message sender to directly subscribe the subscription message to the subscriber, a second request message, an adding module, configured to add a designated subscriber that receives the subscription message according to the second request, and a second indication module, configured to instruct the message sender to publish the subscription message to the added location Specify the subscriber.
  • a second receiving module configured to receive, before adding, by the indication module, the message sender to directly subscribe the subscription message to the subscriber
  • a second request message configured to add a designated subscriber that receives the subscription message according to the second request
  • a second indication module configured to instruct the message sender to publish the subscription message to the added location Specify the subscriber.
  • the device further includes: a determining module, configured to determine, after the adding module adds a designated subscriber that receives the subscription message according to the second request, whether the second request indicates the subscription Discharging the message and sending the message to the subscriber and the designated subscriber; the offloading module is configured to, when the judgment result is yes, offload the subscription message according to the weight value information indicated by the second request, and then distribute the information to the The subscriber and the designated subscriber.
  • a determining module configured to determine, after the adding module adds a designated subscriber that receives the subscription message according to the second request, whether the second request indicates the subscription Discharging the message and sending the message to the subscriber and the designated subscriber
  • the offloading module is configured to, when the judgment result is yes, offload the subscription message according to the weight value information indicated by the second request, and then distribute the information to the The subscriber and the designated subscriber.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the request message for sending the subscription message sent by the message sender is first received, and then the message sender is instructed to directly publish the subscription message to the subscriber.
  • the message sender is instructed to directly publish the subscription message to the subscriber without centralized distribution through the middleware.
  • FIG. 1 is a flowchart of a method for issuing a subscription message according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of subscription of a subscription message according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of subscription of a subscription message according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of publishing a subscription message according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a release of a subscription message according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of unsubscribing according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a modified message routing path according to an embodiment of the present invention.
  • FIG. 9 is a flow chart of modifying a routing path according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 11 is a block diagram 1 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 12 is a block diagram 2 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 13 is a block diagram 3 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 14 is a block diagram 4 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 15 is a block diagram 5 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for publishing a subscription message according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 Receive a request message sent by a message sender for sending a subscription message.
  • Step S104 instructing the message sender to directly post the subscription message to the subscriber.
  • the request message for sending the subscription message sent by the message sender is first received, and then the message sender is instructed to directly post the subscription message to the subscriber.
  • the sender of the subscription message is instructed to directly post the subscription message to the subscriber.
  • the routing path of the subscription message and the sender of the subscription message may be directly sent to the subscriber, and in the specific determining process, a plurality of different determining methods may be included. Among them, it can be determined according to the pre-stored subscription information, including:
  • the method further includes: determining and saving the foregoing pre-stored subscription message, before searching for the subscription path of the subscription message and the routing path of sending the subscription message according to the pre-stored subscription information, the method further includes:
  • S1 Receive subscription information sent by one or more subscribers, where the subscription information includes at least one of: a subscription message that the subscriber needs to receive, and a routing path that the subscriber receives the subscription message;
  • FIG. 2 is a schematic diagram of subscription of a subscription message according to an embodiment of the present invention, as shown in FIG. 2, where ServiceA is a subscriber of a subscription message, and a database server is a database server that stores subscription information, and FIG. 3 is according to the present invention.
  • the subscription flow chart of the subscription message of the embodiment of the present invention, as shown in FIG. 3, includes:
  • the service performs a subscription operation, and the subscription operation carries a keyword identifier key1;
  • an index Sub record is added to the database, and the record is in the form of a Key-Value (key index), wherein the Key1 carried by the Sub is used as a key, including the service identifier and the IP.
  • the keyword key1 is used to characterize the subscriber identity and routing path.
  • FIG. 4 is a schematic diagram of a subscription message distribution according to an embodiment of the present invention.
  • Service B is a publisher of a subscription message
  • FIG. 5 is a flowchart of a subscription message release according to an embodiment of the present invention. 5, including:
  • the sender service establishes a link with the database server through the database client.
  • the sender service performs a publishing operation, and the key operation carries a key2 to represent the message feature.
  • S503 View the local route cache, if there is a local route cache of the key, directly establish a link point-to-point to send a message;
  • the matching is divided into two types: an exact match and a fuzzy match; the match may be matched first, and then the match may be performed. If it matches, then Key2 generates a routing entry to be saved in the database, then updates the publisher's local cache, and then sends the past directly to the peer according to the matching subscriber.
  • the subscriber of the subscription message subscribes to the required subscription message, and can use the keyword Key1 as an identifier to represent the required subscription message, and save the keyword Key1 subscription information in the database index Sub record.
  • the message sender sends a message, which may include a subscription message, and the sender may use the keyword Key2 as an identifier to characterize the feature sent by the sender, and then perform matching in the Sub record to find out which subscribers subscribe to the feature. Find a subscriber, And generating a routing entry or routing path of the message corresponding to the Key2.
  • the sender initiates a lightweight point-to-point communication link to the subscriber based on the routing entry and then sends the message directly to the subscriber.
  • FIG. 6 is a schematic diagram of canceling the subscription according to an embodiment of the present invention. 6 is a flowchart of canceling a subscription according to an embodiment of the present invention. As shown in FIG. 7, the method for canceling a subscription includes:
  • the subscriber and the routing path may be modified to temporarily re-determine the subscriber and the routing path.
  • S21 Receive a first request message for modifying a subscriber and/or modifying a routing path.
  • S23 Determine the designated subscriber and the routing path as the receiving path of the subscription message and/or the routing path of the publishing subscription message.
  • FIG. 8 is a schematic diagram of a modified message routing path according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of modifying a routing path according to an embodiment of the present invention. As shown in Figure 9, it includes:
  • the web server passes the command to the configuration agent.
  • routing entries are as follows:
  • the service C is newly deployed, which is an enhanced version of the service B, and the subsequent replacement service B is required. Therefore, it is necessary to subsequently deliver all the messages sent to the service B to the service C.
  • command-line interface (Cli) or the web client can be configured to directly exchange the first request message with the database server by modifying the routing entry, and the modified routing entry is as follows:
  • the local cache of ServiceA may also be updated, so that all subsequent Key1 feature messages are directly delivered to the new service C instead of the service B, and the whole process is smooth to the system.
  • the receiver of the subscription message before the instructing the message sender to directly publish the subscription message to the subscriber, the receiver of the subscription message may be added, that is, the subscriber is temporarily added.
  • the method further includes:
  • the subscription message may also be offloaded, for example, a complete subscription message may be split and sent to Different subscribers, methods include:
  • the load balancing is performed, that is, for the message of the Key1 feature.
  • the delivery policy is delivered in turn to two instances of Service B, namely, Subscriber ServiceB1, Subscriber ServiceB2.
  • the routing entries are as follows:
  • both ServiceB1 and ServiceB2 have a weight of 1, and will be selected as the destination of the Key1 message in turn.
  • Service B needs to be upgraded to BB.
  • the new version needs to be integrated into the system for trial operation. Then the system needs to transfer a small part of the work to ServiceBB, so that the new version can be functional. Avoid the impact on the system if the new version is faulty.
  • the user directly sends a second request message to the database server through the online command Cli or the web client, and the message subscriber and the weight are modified.
  • the modified route entry is as follows:
  • the delivery destination has ServiceB instance 1, ServiceB instance 2, and ServiceBB instance 3, and the delivery weight factor is 40%, 40%, 20%. This way The delivery of subsequent messages, delivered to ServiceBB only accounts for 20% of the entire subscription message.
  • the method according to the above embodiment 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.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
  • a subscription message publishing apparatus is further provided, and the apparatus may be set as a component or a function module on a server that issues a subscription message, and may also be set on another device that can send a message.
  • the device is used to implement the above embodiments and preferred embodiments, and the description thereof has been omitted.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 10 is a structural block diagram of a subscription message issuing apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes:
  • the first receiving module 100 is configured to receive a request message sent by a message sender for sending a subscription message
  • the first indication module 102 is configured to instruct the message sender to directly publish the subscription message to the subscriber.
  • FIG. 11 is a block diagram of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention.
  • the first indicating module 102 includes:
  • the searching unit 110 is configured to search for a subscriber of the subscription message and a routing path for sending the subscription message according to the pre-stored subscription information;
  • the indicating unit 112 is configured to instruct the message sender to directly subscribe the message through the routing path Publish to subscribers.
  • FIG. 12 is a block diagram of an optional structure of a subscription message issuing apparatus according to an embodiment of the present invention. As shown in FIG. 12, the first indicator module 102 further includes:
  • the first receiving unit 120 is configured to receive subscription information sent by one or more subscribers before the searching unit searches for a subscription message of the subscription message and the routing path of the subscription message according to the pre-stored subscription information, where the subscription information includes at least the following One: the subscription message that the subscriber needs to receive, and the routing path that the subscriber receives the subscription message;
  • the saving unit 122 is configured to save the subscription information as pre-stored subscription information.
  • FIG. 13 is a block diagram 3 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention. As shown in FIG. 13, the first indicating module 102 further includes:
  • the second receiving unit 130 is configured to: after the searching unit searches for a subscription message of the subscription message according to the pre-stored subscription information and sends a routing path of the subscription message, receiving a first request message for modifying the subscriber and/or modifying the routing path;
  • the modifying unit 132 is configured to modify the subscriber according to the first request message to obtain the designated subscriber and/or modify the routing path to obtain the designated routing path.
  • a determining unit 134 is configured to determine the designated subscriber and the routing path as the recipient of the subscription message and/or the routing path to publish the subscription message.
  • FIG. 14 is a block diagram showing an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes:
  • the second receiving module 140 is configured to receive a second request message for adding a subscription message before the first indication module instructs the message sender to directly publish the subscription message to the subscriber.
  • the adding module 142 is configured to increase a designated subscriber that receives the subscription message according to the second request;
  • the second indication module 144 is configured to instruct the message sender to publish the subscription message to the added designated subscriber.
  • FIG. 15 is a block diagram 5 of an optional structure of a subscription message distributing apparatus according to an embodiment of the present invention. As shown in FIG. 15, the apparatus includes:
  • the determining module 150 is configured to: after the adding module increases the designated subscriber that receives the subscription message according to the second request, determine whether the second request indicates that the subscription message is offloaded and then sent to the subscriber and the designated subscriber;
  • the offloading module 152 is configured to, when the determination result is yes, offload the subscription message according to the weight value information indicated by the second request, and then distribute the information to the subscriber and the designated subscriber.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S51 Receive a request message sent by a sender of a message for sending a subscription message.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes, according to the stored program code in the storage medium, a request message for sending a subscription message sent by the sender of the message;
  • the processor executes the indication message according to the stored program code stored in the storage medium, and the sender directly issues the subscription message to the subscriber.
  • modules or steps of the present invention described above can be implemented with a general purpose computing device, which can be centralized on a single computing device, or Distributed over a network of computing devices, optionally, they may be implemented in program code executable by the computing device, such that they may be stored in the storage device for execution by the computing device, and in some cases
  • the steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • a request message for sending a subscription message sent by a message sender is first received, and then the message sender is instructed to directly publish the subscription message to a subscriber.
  • the sender of the subscription message is instructed to directly publish the subscription message to the subscriber without centralized distribution through the middleware, the problem of delay in using the server to transfer when sending the subscription message in the related art is solved, thereby achieving The effect of shortening the transmission delay of the subscription message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种订阅消息的发布方法及装置,其中,该方法包括:接收消息发送方发送的用于发送订阅消息的请求消息;指示所述消息发送方将所述订阅消息直接发布给订阅方。通过本发明,解决了相关技术中在发送订阅消息时使用服务器进行中转而导致时延过大的问题,进而达到了缩短订阅消息的发送时延的效果。

Description

订阅消息的发布方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种订阅消息的发布方法及装置。
背景技术
相关技术中,对于一个大型的分布式软件系统来说,会有很多服务,或由很多功能模块组成。这些服务之间就会存在相互交换信息的需求。通信组件需要完成的就是不同服务之间的信息传递需求。但是如果仅仅完成信息的传递,还远无法达到一个高效可扩展系统的要求。通常会有很多问题需要解决,例如,如何尽可能降低发送者和接收者之间的耦合度、如何做到有效的负荷均衡、如何新增一个服务不影响原先运行的服务。
相关技术中,基于发布/订阅机制的消息队列中间件为以异步方式实现构造的分布式应用提供了一种松耦合方法。它简化应用之间数据的传输,屏蔽底层异构操作系统和网络平台,提供了一致的通信标准和应用开发,确保分布式计算网络环境下可靠的、跨平台的信息传输和数据交换。
同时,相关技术中的消息发布订阅系统都存在如下的问题:
1、标准的C/S架构,所有消息发布方都需要先将消息发往服务器,由服务器再投递给消息的接收方。对于一个有若干消息交互的业务流程,最终体现出时延大的缺点。
2、服务器在投递消息的时候路由关系都是由客户端通知服务器生成的,第三方很难进行修改。某些场景需要修改报文的投递路径时,除非升级客户端程序来重新生成路由关系,否则无所适从,大大限制了用户的使用场景。
3、服务器在进行报文投递时,匹配算法也是简单通过发布方的发布关键字和接收方的接收关键字进行模糊匹配,缺乏更有效的基于业务数据 自定义消息投递路径的支撑。
针对相关技术中存在的上述问题,目前尚未发现有效的解决方法。
发明内容
本发明实施例提供了一种订阅消息的发布方法及装置,以至少解决相关技术中在发送订阅消息时使用服务器进行中转而导致时延过大的问题。
根据本发明实施例的一个方面,提供了一种订阅消息的发布方法,包括:接收消息发送方发送的用于发送订阅消息的请求消息;指示所述消息发送方将所述订阅消息直接发布给订阅方。
可选地,所述指示所述消息发送方将所述订阅消息直接发布给订阅方包括:根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径;指示所述消息发送方将所述订阅消息通过所述路由路径直接发布给所述订阅方。
可选地,在根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之前,所述方法还包括:接收一个或多个所述订阅方发送的订阅信息,其中,所述订阅信息包括以下至少之一:所述订阅方需要接收的订阅消息、所述订阅方接收订阅消息的路由路径;保存所述订阅信息作为所述预存订阅信息。
可选地,在所述根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之后,所述方法还包括:接收用于修改所述订阅方和/或修改所述路由路径的第一请求消息;根据所述第一请求消息修改所述订阅方得到指定订阅方和/或修改所述路由路径得到指定路由路径。将所述指定订阅方和所述定路由路径确定为所述订阅消息的接收方和/或发布所述订阅消息的路由路径。
可选地,在所述指示所述消息发送方将所述订阅消息直接发布给订阅方之前,所述方法还包括:接收用于增加订阅所述订阅消息的第二请求消息;根据所述第二请求增加接收所述订阅消息的指定订阅方;指示所述消 息发送方将所述订阅消息发布给增加的所述指定订阅方。
可选地,在所述根据所述第二请求增加接收所述订阅消息的指定订阅方之后,所述方法还包括:判断所述第二请求是否指示对所述订阅消息进行分流后发送给所述订阅方和所述指定订阅方;在判断结果为是时,将所述订阅消息根据所述第二请求指示的权重值信息分流后发布给所述订阅方和所述指定订阅方。
可选地,接收通过命令行界面Cli或Web客户端发送的所述第一请求消息和/或所述第二请求消息。
根据本发明实施例的另一方面,提供了一种订阅消息的发布装置,包括:第一接收模块,设置为接收消息发送方发送的用于发送订阅消息的请求消息;第一指示模块,设置为指示所述消息发送方将所述订阅消息直接发布给订阅方。
可选地,所述第一指示模块包括:查找单元,设置为根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径;指示单元,设置为指示所述消息发送方将所述订阅消息通过所述路由路径直接发布给所述订阅方。
可选地,所述第一指示模块还包括:第一接收单元,设置为在所述查找单元根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之前,接收一个或多个所述订阅方发送的订阅信息,其中,所述订阅信息包括以下至少之一:所述订阅方需要接收的订阅消息、所述订阅方接收订阅消息的路由路径;保存单元,设置为保存所述订阅信息作为所述预存订阅信息。
可选地,所述第一指示模块还包括:第二接收单元,设置为在所述查找单元根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之后,接收用于修改所述订阅方和/或修改所述路由路径的第一请求消息;修改单元,设置为根据所述第一请求消息修改所述订阅方得到指定订阅方和/或修改所述路由路径得到指定路由路径。确定单元,设置 为将所述指定订阅方和所述定路由路径确定为所述订阅消息的接收方和/或发布所述订阅消息的路由路径。
可选地,所述装置还包括:第二接收模块,设置为在所述指示模块指示所述消息发送方将所述订阅消息直接发布给订阅方之前,接收用于增加订阅所述订阅消息的第二请求消息;增加模块,设置为根据所述第二请求增加接收所述订阅消息的指定订阅方;第二指示模块,设置为指示所述消息发送方将所述订阅消息发布给增加的所述指定订阅方。
可选地,所述装置还包括:判断模块,设置为在所述增加模块根据所述第二请求增加接收所述订阅消息的指定订阅方之后,判断所述第二请求是否指示对所述订阅消息进行分流后发送给所述订阅方和所述指定订阅方;分流模块,设置为在判断结果为是时,将所述订阅消息根据所述第二请求指示的权重值信息分流后发布给所述订阅方和所述指定订阅方。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:
接收消息发送方发送的用于发送订阅消息的请求消息;指示所述消息发送方将所述订阅消息直接发布给订阅方。
通过本发明实施例,采用首先接收消息发送方发送的用于发送订阅消息的请求消息,然后指示所述消息发送方将所述订阅消息直接发布给订阅方。通过指示订阅消息的发送方直接将订阅消息发送给订阅方,而不通过中间件进行集中分发,解决了相关技术中在发送订阅消息时使用服务器进行中转而导致时延过大的问题,进而达到了缩短订阅消息的发送时延的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发 明的不当限定。在附图中:
图1是根据本发明实施例的订阅消息的发布方法的流程图;
图2是根据本发明实施例的订阅消息的订阅示意图;
图3是根据本发明实施例的订阅消息的订阅流程图;
图4是根据本发明实施例的订阅消息的发布示意图;
图5是根据本发明实施例的订阅消息的发布流程图;
图6是根据本发明实施例的取消订阅的示意图;
图7是根据本发明实施例的取消订阅流程图;
图8是根据本发明实施例的修改消息路由路径示意图;
图9是根据本发明实施例的修改路由路径的流程图;
图10是根据本发明实施例的订阅消息发布装置的结构框图;
图11是根据本发明实施例的订阅消息发布装置的可选结构框图一;
图12是根据本发明实施例的订阅消息发布装置的可选结构框图二;
图13是根据本发明实施例的订阅消息发布装置的可选结构框图三;
图14是根据本发明实施例的订阅消息发布装置的可选结构框图四;
图15是根据本发明实施例的订阅消息发布装置的可选结构框图五。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种订阅消息的发布方法,该方法可应用在消息发布订阅系统中,也可应用在可以发送消息的服务器,中转设备、控制设 备中。图1是根据本发明实施例的订阅消息的发布方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,接收消息发送方发送的用于发送订阅消息的请求消息;
步骤S104,指示消息发送方将订阅消息直接发布给订阅方。
通过本实施例,采用首先接收消息发送方发送的用于发送订阅消息的请求消息,然后指示消息发送方将订阅消息直接发布给订阅方。通过指示订阅消息的发送方直接将订阅消息发送给订阅方,而不通过中间件进行集中分发,解决了相关技术中在发送订阅消息时使用服务器进行中转而导致时延过大的问题,进而达到了缩短订阅消息的发送时延的效果。
在根据本实施例的可选实施方式中,还可以确定订阅消息的订阅方和订阅消息的发送方直接发送订阅消息的路由路径,在具体的确定过程中,可以包括多种不同的确定方法,其中,可以根据预存的订阅信息进行确定,包括:
S11,根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径;
S12,指示消息发送方将订阅消息通过路由路径直接发布给订阅方。
可选的,还包括确定和保存上述预存订阅消息,在根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径之前,方法还包括:
S1,接收一个或多个订阅方发送的订阅信息,其中,订阅信息包括以下至少之一:订阅方需要接收的订阅消息、订阅方接收订阅消息的路由路径;
S2,保存订阅信息作为预存订阅信息。
可选的,图2是根据本发明实施例的订阅消息的订阅示意图,如图2所示,其中,ServiceA为订阅消息的订阅方,数据库服务器为保存订阅信息的数据库服务器,图3是根据本发明实施例的订阅消息的订阅流程图,如图3所示,包括:
S301,订阅方通过数据库客户端与数据库服务器建立链接;
S302,服务进行订阅操作,订阅操作中携带关键字标识key1;
S303,在数据库中增加一条索引Sub记录,记录为Key-Value(重要索引)形式,其中Sub携带的key1作为关键字,包括服务标识和IP。关键字key1用来表征订阅方标识和路由路径。
图4是根据本发明实施例的订阅消息的发布示意图,如图4所示,其中,Service B为订阅消息的发布方,图5是根据本发明实施例的订阅消息的发布流程图,如图5所示,包括:
S501,发送方服务通过数据库客户端与数据库服务器建立链接;
S502,发送方服务进行发布操作,发布操作中携带key2表征报文特征;
S503,查看本地路由缓存,如果有该key的本地路由缓存,直接点对点建立链接,发送消息;
S504,如果没有该key的本地路由缓存,则查找数据库中的Sub记录,将两者的key进行匹配,生成发布key的一条路由条目保持在数据库中同时更新发布方本地缓存,然后点对点发送消息;
可选的,在具体的匹配过程中,匹配分为两种:完全匹配和模糊匹配;可以先完全匹配,然后再模糊匹配。匹配到,则该Key2生成一条路由条目保存在数据库中,后更新发布方本地缓存,然后根据匹配到的订阅方,点对点直接发送过去。
S505,如果在数据库中没有与Sub记录匹配成功,则发布的消息丢弃。
订阅消息的订阅方订阅需要的订阅消息,可以通过关键字Key1作为标识来表征需要的订阅消息,将包括关键字Key1订阅信息保存在数据库索引Sub记录中。消息发送方发送消息,其中可能包括订阅消息,发送方可以通过关键字Key2作为标识来表征发送方发送消息的特征,然后在Sub记录中进行匹配,寻找有哪些订阅方订阅了该特征的消息,查找订阅方, 并生成该Key2对应消息的路由条目或路由路径。发送方根据路由条目向订阅方发起一个轻量级的点对点通信链接,然后直接将消息发送给订阅方。
可选的,在创建订阅信息之后,订阅方还可以通过关键字Key3取消订阅某类消息,其中,Key3和Key1可以相同或者不同,图6是根据本发明实施例的取消订阅的示意图,如图6所示,图7是根据本发明实施例的取消订阅流程图,如图7所示,取消订阅的方法包括:
S701,通过数据库客户端与数据库服务器建立链接;
S702,进行取消订阅操作,取消对于某个key的订阅;如已经订阅的key1
S703,在数据库的Sub记录中删除该key下对应的服务条目,然后在路由关系中根据key删除对应的路由条目,更新与该记录相关的发布方的本地缓存。
可选的,在某些特定的场景下,在根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径之后,还可以修改订阅方和路由路径来临时重新确定订阅方和路由路径,包括:
S21,接收用于修改订阅方和/或修改路由路径的第一请求消息;
S22,根据第一请求消息修改订阅方得到指定订阅方和/或修改路由路径得到指定路由路径。
S23,将指定订阅方和定路由路径确定为订阅消息的接收方和/或发布订阅消息的路由路径。
如,可以修改路由条目来修改订阅消息的投递路径:图8是根据本发明实施例的修改消息路由路径示意图,如图8所示,图9是根据本发明实施例的修改路由路径的流程图,如图9所示,包括:
S901,通过Web客户端修改某个key的投递路径;
S902,Web服务器将命令传递给配置代理;
S903,配置代理修改该key在数据库中的路由记录;
S904,通过该key的路由记录找到发布方,更新发布方的本地路由缓存。
通过消息的发布订阅,根据消息的关键字Key1,已经生成了一条路由关系在数据库中,路由条目示意如下:
Key:Key1
Value:发布/ServiceA,订阅/ServiceB
如,在某个可选的场景下,新部署了服务C,它是服务B的增强版本,需要后续替代服务B,那么势必需要后续将所有发往服务B的消息投递给服务C。
可选的,可以通过命令行界面(Command-line interface,简称为Cli)或者Web客户端,经配置代理,直接与数据库服务器交互第一请求消息,修改路由条目,修改后的路由条目如下:
Key:Key1
Value:发布/ServiceA,订阅/ServiceC
可选的,还可以更新ServiceA的本地缓存,这样后续所有Key1特征的报文,直接投递给新服务C,而不是服务B,整个过程对系统平滑无损。
在根据本实施例的可选实施方式中,在指示消息发送方将订阅消息直接发布给订阅方之前,还可以增加订阅消息的接收方,即,临时增加订阅方,方法还包括:
S31,接收用于增加订阅消息的第二请求消息;
S32,根据第二请求增加接收订阅消息的指定订阅方;
S33,指示消息发送方将订阅消息发布给增加的指定订阅方。
可选的,根据上述可选实施方式,在根据第二请求增加接收订阅消息的指定订阅方之后,还可以对订阅消息进行分流处理,如,可以将一条完整的订阅消息进行拆分后发给不同的订阅方,方法还包括:
S41,判断第二请求是否指示对订阅消息进行分流后发送给订阅方和指定订阅方;
S42,在判断结果为是时,将订阅消息根据第二请求指示的权重值信息分流后发布给订阅方和指定订阅方。
下面结合场景进行具体说明:
通过消息的发布订阅,如果基于消息关键字Key1,服务B有两份拷贝实例,都进行了订阅,并且该消息指定是非抄送模式,那么本会进行负荷均衡,即对于Key1特征的报文,投递策略轮流投递给服务B的两个实例,即,订阅方ServiceB1、订阅方ServiceB2。
路由条目示意如下:
Key:Key1
Value:发布/ServiceA,订阅/ServiceB1/1,订阅/ServiceB2/1
在路由条目选择上,ServiceB1和ServiceB2权重都为1,会轮流选择作为Key1消息的目的方。
在某个可选的场景下,服务B需要升级成BB,新的版本需要融入到系统中试运行,那么系统需要将一小部分的工作转移到ServiceBB,这样既可以让新版本发挥功能,又避免如果新版本有故障,对系统的影响也能减少到最小。
可选的,本实例中本实施例中用户通过在线命令Cli或者Web客户端,经配置代理,直接与数据库服务器交互发送第二请求消息,修改消息订阅方和权重,修改后的路由条目如下:
Key:Key1
Value:发布/ServiceA,订阅/ServiceB1/40,订阅/ServiceB2/40,订阅/ServiceBB/20
修改后,对于Key1的消息,投递目的方有ServiceB实例1,ServiceB实例2,以及ServiceBB实例3,投递权重因子为40%,40%,20%。这样 后续报文的投递,投递给ServiceBB只占整个订阅消息报文的20%。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。
在本实施例中还提供了一种订阅消息发布装置,该装置可以作为一个组件或者功能模块设置在发布订阅消息的服务器上,还可以设置在其他可以发送消息的设备上。该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图10是根据本发明实施例的订阅消息发布装置的结构框图,如图10所示,该装置包括:
第一接收模块100,设置为接收消息发送方发送的用于发送订阅消息的请求消息;
第一指示模块102,设置为指示消息发送方将订阅消息直接发布给订阅方。
图11是根据本发明实施例的订阅消息发布装置的可选结构框图一,如图11所示,该装置除包括图10所示的所有模块外,第一指示模块102包括:
查找单元110,设置为根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径;
指示单元112,设置为指示消息发送方将订阅消息通过路由路径直接 发布给订阅方。
图12是根据本发明实施例的订阅消息发布装置的可选结构框图二,如图12所示,该装置除包括图11所示的所有模块外,第一指示模块102还包括:
第一接收单元120,设置为在查找单元根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径之前,接收一个或多个订阅方发送的订阅信息,其中,订阅信息包括以下至少之一:订阅方需要接收的订阅消息、订阅方接收订阅消息的路由路径;
保存单元122,设置为保存订阅信息作为预存订阅信息。
图13是根据本发明实施例的订阅消息发布装置的可选结构框图三,如图13所示,该装置除包括图11所示的所有模块外,第一指示模块102还包括:
第二接收单元130,设置为在查找单元根据预存订阅信息查找订阅消息的订阅方和发送订阅消息的路由路径之后,接收用于修改订阅方和/或修改路由路径的第一请求消息;
修改单元132,设置为根据第一请求消息修改订阅方得到指定订阅方和/或修改路由路径得到指定路由路径。
确定单元134,设置为将指定订阅方和定路由路径确定为订阅消息的接收方和/或发布订阅消息的路由路径。
图14是根据本发明实施例的订阅消息发布装置的可选结构框图四,如图14所示,该装置除包括图10所示的所有模块外,装置还包括:
第二接收模块140,设置为在第一指示模块指示消息发送方将订阅消息直接发布给订阅方之前,接收用于增加订阅消息的第二请求消息;
增加模块142,设置为根据第二请求增加接收订阅消息的指定订阅方;
第二指示模块144,设置为指示消息发送方将订阅消息发布给增加的指定订阅方。
图15是根据本发明实施例的订阅消息发布装置的可选结构框图五,如图15所示,该装置除包括图14所示的所有模块外,装置还包括:
判断模块150,设置为在增加模块根据第二请求增加接收订阅消息的指定订阅方之后,判断第二请求是否指示对订阅消息进行分流后发送给订阅方和指定订阅方;
分流模块152,设置为在判断结果为是时,将订阅消息根据第二请求指示的权重值信息分流后发布给订阅方和指定订阅方。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S51,接收消息发送方发送的用于发送订阅消息的请求消息;
S52,指示消息发送方将订阅消息直接发布给订阅方。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行接收消息发送方发送的用于发送订阅消息的请求消息;
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行指示消息发送方将订阅消息直接发布给订阅方。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者 分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
通过本发明,采用首先接收消息发送方发送的用于发送订阅消息的请求消息,然后指示所述消息发送方将所述订阅消息直接发布给订阅方。通过指示订阅消息的发送方直接将订阅消息发送给订阅方,而不通过中间件进行集中分发,解决了相关技术中在发送订阅消息时使用服务器进行中转而导致时延过大的问题,进而达到了缩短订阅消息的发送时延的效果。

Claims (13)

  1. 一种订阅消息的发布方法,包括:
    接收消息发送方发送的用于发送订阅消息的请求消息;
    指示所述消息发送方将所述订阅消息直接发布给订阅方。
  2. 根据权利要求1所述的方法,其中,所述指示所述消息发送方将所述订阅消息直接发布给订阅方包括:
    根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径;
    指示所述消息发送方将所述订阅消息通过所述路由路径直接发布给所述订阅方。
  3. 根据权利要求2所述的方法,其中,在根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之前,所述方法还包括:
    接收一个或多个所述订阅方发送的订阅信息,其中,所述订阅信息包括以下至少之一:所述订阅方需要接收的订阅消息、所述订阅方接收订阅消息的路由路径;
    保存所述订阅信息作为所述预存订阅信息。
  4. 根据权利要求2所述的方法,其中,在所述根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之后,所述方法还包括:
    接收用于修改所述订阅方和/或修改所述路由路径的第一请求消息;
    根据所述第一请求消息修改所述订阅方得到指定订阅方和/或修改所述路由路径得到指定路由路径;
    将所述指定订阅方和所述定路由路径确定为所述订阅消息的接收 方和/或发布所述订阅消息的路由路径。
  5. 根据权利要求1所述的方法,其中,在所述指示所述消息发送方将所述订阅消息直接发布给订阅方之前,所述方法还包括:
    接收用于增加订阅所述订阅消息的第二请求消息;
    根据所述第二请求增加接收所述订阅消息的指定订阅方;
    指示所述消息发送方将所述订阅消息发布给增加的所述指定订阅方。
  6. 根据权利要求5所述的方法,其中,在所述根据所述第二请求增加接收所述订阅消息的指定订阅方之后,所述方法还包括:
    判断所述第二请求是否指示对所述订阅消息进行分流后发送给所述订阅方和所述指定订阅方;
    在判断结果为是时,将所述订阅消息根据所述第二请求指示的权重值信息分流后发布给所述订阅方和所述指定订阅方。
  7. 根据权利要求4至6任意一项所述的方法,其中,接收通过命令行界面Cli或Web客户端发送的所述第一请求消息和/或所述第二请求消息。
  8. 一种订阅消息的发布装置,包括:
    第一接收模块,设置为接收消息发送方发送的用于发送订阅消息的请求消息;
    第一指示模块,设置为指示所述消息发送方将所述订阅消息直接发布给订阅方。
  9. 根据权利要求8所述的装置,其中,所述第一指示模块包括:
    查找单元,设置为根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径;
    指示单元,设置为指示所述消息发送方将所述订阅消息通过所述路由路径直接发布给所述订阅方。
  10. 根据权利要求9所述的装置,其中,所述第一指示模块还包括:
    第一接收单元,设置为在所述查找单元根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之前,接收一个或多个所述订阅方发送的订阅信息,其中,所述订阅信息包括以下至少之一:所述订阅方需要接收的订阅消息、所述订阅方接收订阅消息的路由路径;
    保存单元,设置为保存所述订阅信息作为所述预存订阅信息。
  11. 根据权利要求9所述的装置,其中,所述第一指示模块还包括:
    第二接收单元,设置为在所述查找单元根据预存订阅信息查找所述订阅消息的订阅方和发送所述订阅消息的路由路径之后,接收用于修改所述订阅方和/或修改所述路由路径的第一请求消息;
    修改单元,设置为根据所述第一请求消息修改所述订阅方得到指定订阅方和/或修改所述路由路径得到指定路由路径;
    确定单元,设置为将所述指定订阅方和所述定路由路径确定为所述订阅消息的接收方和/或发布所述订阅消息的路由路径。
  12. 根据权利要求8所述的装置,其中,所述装置还包括:
    第二接收模块,设置为在所述指示模块指示所述消息发送方将所述订阅消息直接发布给订阅方之前,接收用于增加订阅所述订阅消息的第二请求消息;
    增加模块,设置为根据所述第二请求增加接收所述订阅消息的指定订阅方;
    第二指示模块,设置为指示所述消息发送方将所述订阅消息发布给增加的所述指定订阅方。
  13. 根据权利要求12所述的装置,其中,所述装置还包括:
    判断模块,设置为在所述增加模块根据所述第二请求增加接收所述订阅消息的指定订阅方之后,判断所述第二请求是否指示对所述订阅消息进行分流后发送给所述订阅方和所述指定订阅方;
    分流模块,设置为在判断结果为是时,将所述订阅消息根据所述第二请求指示的权重值信息分流后发布给所述订阅方和所述指定订阅方。
PCT/CN2016/096921 2016-01-29 2016-08-26 订阅消息的发布方法及装置 WO2017128713A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610067479.XA CN107026878A (zh) 2016-01-29 2016-01-29 订阅消息的发布方法及装置
CN201610067479.X 2016-01-29

Publications (1)

Publication Number Publication Date
WO2017128713A1 true WO2017128713A1 (zh) 2017-08-03

Family

ID=59397340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096921 WO2017128713A1 (zh) 2016-01-29 2016-08-26 订阅消息的发布方法及装置

Country Status (2)

Country Link
CN (1) CN107026878A (zh)
WO (1) WO2017128713A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965602A (zh) * 2021-10-26 2022-01-21 广州小鹏汽车科技有限公司 车载ecu的订阅发布通信方法、服务器及系统
WO2024092941A1 (zh) * 2022-10-31 2024-05-10 海尔优家智能科技(北京)有限公司 组件信息的处理方法和装置、存储介质及电子装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337120A (zh) * 2018-02-01 2018-07-27 北京安控科技股份有限公司 一种物联网终端设备的远程升级方法
CN109151033B (zh) * 2018-08-30 2022-02-22 百度在线网络技术(北京)有限公司 基于分布式系统的通信方法、装置、电子设备及存储介质
CN112751892B (zh) * 2019-10-30 2022-06-17 腾讯科技(深圳)有限公司 一种信息分发方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307436A1 (en) * 2007-06-06 2008-12-11 Microsoft Corporation Distributed publish-subscribe event system with routing of published events according to routing tables updated during a subscription process
CN101833719A (zh) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 广告发布的管理方法和装置
CN102891797A (zh) * 2012-07-02 2013-01-23 上海交通大学 支持消息持久化的发布订阅方法
CN103534988A (zh) * 2013-06-03 2014-01-22 华为技术有限公司 消息发布与订阅的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307436A1 (en) * 2007-06-06 2008-12-11 Microsoft Corporation Distributed publish-subscribe event system with routing of published events according to routing tables updated during a subscription process
CN101833719A (zh) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 广告发布的管理方法和装置
CN102891797A (zh) * 2012-07-02 2013-01-23 上海交通大学 支持消息持久化的发布订阅方法
CN103534988A (zh) * 2013-06-03 2014-01-22 华为技术有限公司 消息发布与订阅的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965602A (zh) * 2021-10-26 2022-01-21 广州小鹏汽车科技有限公司 车载ecu的订阅发布通信方法、服务器及系统
WO2024092941A1 (zh) * 2022-10-31 2024-05-10 海尔优家智能科技(北京)有限公司 组件信息的处理方法和装置、存储介质及电子装置

Also Published As

Publication number Publication date
CN107026878A (zh) 2017-08-08

Similar Documents

Publication Publication Date Title
US10862955B2 (en) Distributing service sessions
WO2017128713A1 (zh) 订阅消息的发布方法及装置
US11232446B2 (en) Carrier grade telecom blockchain
JP5327852B2 (ja) スケーラブルなピア・グループを使用して通信を最適化すること
EP3313027B1 (en) Routing rule acquisition method and system
US9110884B2 (en) Message publishing and subscribing method and apparatus
US20200059353A1 (en) Data fetching in data exchange networks
CN102984278B (zh) 实现浏览器数据同步的系统和方法
CN113572835B (zh) 一种数据处理方法、网元设备以及可读存储介质
WO2020253634A1 (zh) 一种数据处理方法、系统及装置
WO2021051747A1 (zh) 数据更新方法、系统、装置、电子设备及计算机存储介质
US11146628B2 (en) CDN-based client messaging
JP2007502553A (ja) 自己管理仲介情報フロー
KR20120038187A (ko) 컨텐츠 중심 네트워킹 환경에서 그룹 변경에 관한 정보를 이용한 컨텐츠 공유 방법 및 장치
US20160277289A1 (en) Federation of controllers management using packet context
US20230300106A1 (en) Data processing method, network element device and readable storage medium
CN111917838B (zh) 基于微服务的处理方法及装置、存储介质、电子装置
JP2016111703A (ja) 情報指向ネットワークにおけるコンテンツ配置
US11711437B1 (en) Distributed transmission of messages in a communication network with selective multi-region replication
JP5109901B2 (ja) セッションデータ共有方法
CN114968617B (zh) Api转换系统及其访问请求处理方法、电子设备及介质
JP2007013804A (ja) 属性指定通信方法および通信装置
US11960407B1 (en) Cache purging in a distributed networked system
US20220150671A1 (en) Message transfer apparatus, method, and program
CN116886776A (zh) 一种基于传输热点的存储节点自适应调整方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16887589

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16887589

Country of ref document: EP

Kind code of ref document: A1