CN107026878A - Subscribe to the dissemination method and device of message - Google Patents

Subscribe to the dissemination method and device of message Download PDF

Info

Publication number
CN107026878A
CN107026878A CN201610067479.XA CN201610067479A CN107026878A CN 107026878 A CN107026878 A CN 107026878A CN 201610067479 A CN201610067479 A CN 201610067479A CN 107026878 A CN107026878 A CN 107026878A
Authority
CN
China
Prior art keywords
message
subscription
subscriber
subscribing
routed path
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.)
Pending
Application number
CN201610067479.XA
Other languages
Chinese (zh)
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.)
Shanghai Zhongxing Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610067479.XA priority Critical patent/CN107026878A/en
Priority to PCT/CN2016/096921 priority patent/WO2017128713A1/en
Publication of CN107026878A publication Critical patent/CN107026878A/en
Pending legal-status Critical Current

Links

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

Landscapes

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

Abstract

The invention provides a kind of dissemination method and device for subscribing to message, wherein, this method includes:Receive the request message for being used to send subscription message that message sender is sent;Indicate that the subscription message is directly distributed to subscriber by the message sender.By the present invention, solve in being carried out in correlation technique when sending and subscribing to message using server then cause the problem of time delay is excessive, and then reached the effect for shortening the transmission delay for subscribing to message.

Description

Subscribe to the dissemination method and device of message
Technical field
The present invention relates to the communications field, in particular to a kind of dissemination method and device for subscribing to message.
Background technology
In correlation technique, for a large-scale distributed software system, many services are had, or by many functions Module is constituted.There will be the demand for being exchanged with each other information between these services.What communication component needed completion is exactly different Information transmission demand between service.But if only the transmission for completing information, being also far unable to reach one can efficiently expand The requirement of exhibition system.Generally have many problems need solution, for example, how to reduce as far as possible sender and recipients it Between the degree of coupling, how to accomplish effective load balancing, how to increase a service newly and do not influence the service that originally ran.
In correlation technique, the Message Queuing Middleware based on publish/subscribe mechanism is the distribution for realizing construction in an asynchronous manner Formula, which is applied, provides a kind of loosely coupled method.It simplify application between data transmission, shielding bottom OS and There is provided consistent communication standard and application and development for the network platform, it is ensured that it is reliable under distributed computing network environment, across The information transfer and data exchange of platform.
Meanwhile, the problem of news release ordering system in correlation technique all has following:
1st, the C/S frameworks of standard, all news release sides are required for that message first is sent into server, are thrown again by server Pass the recipient of message.For an operation flow for there are some interacting messages, the big shortcoming of time delay is finally embodied.
2nd, server routing relation when message is delivered all is generated by client notification server, and third party is very Difficulty is modified.When some scenes need to change the delivery route of message, unless updating client program regenerates road It is otherwise at a loss as to what to do by relation, it greatly limit the usage scenario of user.
3rd, server is when carrying out text delivery, and matching algorithm is also simply by the issue keyword of publisher and reception The reception keyword of side carries out fuzzy matching, lacks the more effectively support based on business datum self-defined message delivery route.
For above mentioned problem present in correlation technique, at present it is not yet found that the solution of effect.
The content of the invention
The invention provides a kind of dissemination method and device for subscribing to message, at least to solve sending subscription in correlation technique Transfer to cause the problem of time delay is excessive in carrying out using server during message.
According to an aspect of the invention, there is provided a kind of dissemination method for subscribing to message, including:Receive message sender The request message for being used to send subscription message sent;Indicate that the subscription message is directly distributed to by the message sender Subscriber.
Further, it is described to indicate that the subscription message is directly distributed to subscriber and included by the message sender:According to The subscription information that prestores searches the subscriber for subscribing to message and sends the routed path for subscribing to message;Disappear described in indicating The subscription message is directly distributed to the subscriber by breath sender by the routed path.
Further, described message is subscribed to searching the subscriber for subscribing to message according to the subscription information that prestores and send Before routed path, methods described also includes:The subscription information that one or more subscribers send is received, wherein, The subscription information includes at least one of:The subscriber needs the subscription message received, the subscriber to receive and order Read the routed path of message;The subscription information is preserved as the subscription information that prestores.
Further, the basis prestore subscription information search it is described subscribe to message subscriber and send it is described subscription disappear After the routed path of breath, methods described also includes:Receive for changing the subscriber and/or changing the route road First request message in footpath;The subscriber is changed according to first request message and obtains given subscription side and/or modification The routed path obtains specifying routed path.By the given subscription side and described determine routed path and be defined as the subscription The recipient of message and/or the issue routed path for subscribing to message.
Further, before the subscription message is directly distributed to subscriber by the instruction message sender, institute Stating method also includes:Receive and subscribe to second request message for subscribing to message for increasing;Increased according to the described second request The given subscription side for subscribing to message is received in adjunction;Indicate the message sender by the subscription news release to increased The given subscription side.
Further, after the given subscription side that the subscription message is received according to the described second request increase, institute Stating method also includes:Judge whether second request indicates to be sent to the subscription after shunting the subscription message Square and described given subscription side;When judged result is to be, the power that the subscription message is indicated according to the described second request The subscriber and the given subscription side are distributed to after weight values shunting information.
Further, receive first request message that is sent by Command Line Interface Cli or Web client and/or Second request message.
According to another aspect of the present invention there is provided a kind of distributing device for subscribing to message, including:First receiving module, The request message for being used to send subscription message for receiving message sender transmission;First indicating module, for indicating State message sender and the subscription message is directly distributed to subscriber.
Further, first indicating module includes:Searching unit, for being ordered according to prestoring described in subscription information lookup Subscriber and the transmission routed path for subscribing to message for readding message;Indicating member, for indicating the message sender The subscription message is directly distributed to the subscriber by the routed path.
Further, first indicating module also includes:First receiving unit, in the searching unit according to pre- Deposit before the routed path that subscription information searches the subscriber for subscribing to message and the transmission subscription message, receive one Or the subscription information that multiple subscribers send, wherein, the subscription information includes at least one of:It is described to subscribe to Side needs the subscription message received, the subscriber to receive the routed path for subscribing to message;Storage unit, for preserving Subscription information is stated as the subscription information that prestores.
Further, first indicating module also includes:Second receiving unit, in the searching unit according to pre- Deposit after the routed path that subscription information searches the subscriber for subscribing to message and the transmission subscription message, receiving is used for Change the first request message of the subscriber and/or the modification routed path;Unit is changed, for according to described the The one request message modification subscriber obtains given subscription side and/or the modification routed path obtains specifying routed path. Determining unit, for by the given subscription side and it is described determine routed path be defined as it is described subscription message recipient and/ Or the issue routed path for subscribing to message.
Further, described device also includes:Second receiving module, for indicating the message hair in the indicating module The subscription message is directly distributed to before subscriber by the side of sending, and receiving please for increasing the second of the subscription subscription message Seek message;Increase module, for receiving the given subscription side for subscribing to message according to the described second request increase;Second Indicating module, for indicating the message sender by the subscription news release to the increased given subscription side.
Further, described device also includes:Judge module, for being increased in the increase module according to the described second request Adjunction is received after the given subscription side for subscribing to message, judges whether second request indicates to enter the subscription message The subscriber and the given subscription side are sent to after row shunting;Diverter module, will during for being in judged result The subscriber and the finger are distributed to after the weighted value shunting information that message is subscribed to according to the described second request instruction Determine subscriber.
By the present invention, the request message for being used to send subscription message sent using reception message sender first, then Indicate that the subscription message is directly distributed to subscriber by the message sender.By indicating that the sender for subscribing to message is straight Connect and subscription message is sent to subscriber, without carrying out concentration distribution by middleware, solve in correlation technique and sending Transfer to cause the problem of time delay is excessive in carrying out using server when subscribing to message, and then reached the hair for shortening and subscribing to message Send the effect of time delay.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention Schematic description and description be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the dissemination method of subscription message according to embodiments of the present invention;
Fig. 2 is the subscription schematic diagram of subscription message according to embodiments of the present invention;
Fig. 3 is the subscription flow chart of subscription message according to embodiments of the present invention;
Fig. 4 is the issue schematic diagram of subscription message according to embodiments of the present invention;
Fig. 5 is the issue flow chart of subscription message according to embodiments of the present invention;
Fig. 6 is the schematic diagram unsubscribed according to embodiments of the present invention;
Fig. 7 is according to embodiments of the present invention to unsubscribe flow chart;
Fig. 8 is modification message routing path schematic diagram according to embodiments of the present invention;
Fig. 9 is the flow chart of modification routed path according to embodiments of the present invention;
Figure 10 is the structured flowchart of subscription news release device according to embodiments of the present invention;
Figure 11 is the alternative construction block diagram one of subscription news release device according to embodiments of the present invention;
Figure 12 is the alternative construction block diagram two of subscription news release device according to embodiments of the present invention;
Figure 13 is the alternative construction block diagram three of subscription news release device according to embodiments of the present invention;
Figure 14 is the alternative construction block diagram four of subscription news release device according to embodiments of the present invention;
Figure 15 is the alternative construction block diagram five of subscription news release device according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that in the feelings not conflicted Under condition, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing Etc. being for distinguishing similar object, without for describing specific order or precedence.
A kind of dissemination method for subscribing to message is provided in the present embodiment, and this method can be applicable to news release ordering system In, the server of message can be sent by being also applicable in, in transferring equipment, control device.Fig. 1 is according to of the invention real The flow chart of the dissemination method of the subscription message of example is applied, as shown in figure 1, the flow comprises the following steps:
Step S102, receives the request message for being used to send subscription message that message sender is sent;
Step S104, indicates that message sender is directly distributed to subscriber by message is subscribed to.
By the present embodiment, the request message for being used to send subscription message sent using reception message sender first, so Indicate that message sender is directly distributed to subscriber by message is subscribed to afterwards.It will directly be ordered by the sender for indicating to subscribe to message Read message and be sent to subscriber, without by middleware carry out concentration distribution, solve in correlation technique send subscription disappear Transfer to cause the problem of time delay is excessive in carrying out using server during breath, and then reached the transmission delay for shortening and subscribing to message Effect.
In the optional embodiment according to the present embodiment, it can also determine to subscribe to the subscriber of message and subscribe to the hair of message The side of sending directly transmits the routed path for subscribing to message, in specific determination process, can include a variety of different determinations Method, wherein it is possible to be determined according to the subscription information prestored, including:
S11, the subscriber for subscribing to message and the routed path for sending subscription message are searched according to the subscription information that prestores;
S12, indicates that message sender will subscribe to message and directly be distributed to subscriber by routed path.
Optionally, in addition to determine and preserve the above-mentioned subscription message that prestores, message is subscribed to being searched according to the subscription information that prestores Subscriber and send subscribe to message routed path before, method also includes:
S1, receives the subscription information that one or more subscribers send, wherein, subscription information includes at least one of: Subscriber needs the subscription message received, subscriber to receive the routed path for subscribing to message;
S2, preserves subscription information and is used as the subscription information that prestores.
Optionally, Fig. 2 is the subscription schematic diagram of subscription message according to embodiments of the present invention, as shown in Fig. 2 wherein, ServiceA is subscribes to the subscriber of message, and database server is preserves the database server of subscription information, and Fig. 3 is The subscription flow chart of subscription message according to embodiments of the present invention, as shown in figure 3, including:
S301, subscriber is established the link by database client with database server;
S302, service carries out carrying keyword identification key1 in subscription operation, subscription operation;
S303, increases an index Sub record in database, is recorded as Key-Value (important index) form, The key1 that wherein Sub is carried is used as keyword, including service identifiers and IP.Keyword key1 is used for characterizing subscriber's mark Know and routed path.
Fig. 4 is the issue schematic diagram of subscription message according to embodiments of the present invention, as shown in figure 4, wherein, Service B To subscribe to the publisher of message, Fig. 5 is the issue flow chart of subscription message according to embodiments of the present invention, as shown in figure 5, Including:
S501, sender's service is established the link by database client with database server;
S502, sender's service carries out issue operation, and carrying key2 in issue operation characterizes message characteristic;
S503, checks that local routing is cached, directly point-to-point to establish the link if the local routing of the key is cached, Send message;
S504, if the Sub records in the not local routing caching of the key, searching data storehouse, by both Key is matched, and a generation issue key route entry is maintained in database updates publisher's local cache simultaneously, Then point-to-point transmission message;
Optionally, in specific matching process, matching is divided into two kinds:Matching and fuzzy matching completely;Can be first complete Matching, then fuzzy matching again.Match, then the Key2 generate a route entry be stored in database, after more New publisher's local cache, it is point-to-point to directly transmit over then according to the subscriber matched.
S505, if not with the success of Sub record matchings in database, the message issued is abandoned.
The subscriber for subscribing to message subscribes to the subscription message needed, and mark can be used as by keyword Key1 to be needed to characterize The subscription message wanted, will be stored in including keyword Key1 subscription information in database index Sub records.Message is sent Side sends message, wherein potentially including subscription message, sender can be used as mark to characterize hair by keyword Key2 The side of sending sends the feature of message, is then matched in Sub records, which subscriber searching has have subscribed this feature Message, searches subscriber, and generate the route entry or routed path of Key2 correspondence message.Sender is according to route The point-to-point communication that entry initiates a lightweight to subscriber is linked, and then directly transmits the message to subscriber.
Optionally, after subscription information is created, subscriber can also unsubscribe certain class message by keyword Key3, Wherein, Key3 and Key1 can be with identical or difference, and Fig. 6 is the schematic diagram unsubscribed according to embodiments of the present invention, As shown in fig. 6, Fig. 7 be it is according to embodiments of the present invention unsubscribe flow chart, as shown in fig. 7, the side unsubscribed Method includes:
S701, is established the link by database client with database server;
S702, progress unsubscribes operation, cancels the subscription for some key;The key1 such as having subscribed to
S703, deletes corresponding service listings under the key, then the root in routing relation in the Sub records of database Corresponding route entry is deleted according to key, the local cache of the publisher related to the record is updated.
Optionally, under some specific scenes, subscriber and the transmission of subscription message are being searched according to the subscription information that prestores After the routed path for subscribing to message, subscriber can also be changed and routed path redefines subscriber and route temporarily Path, including:
S21, is received for changing subscriber and/or changing the first request message of routed path;
S22, obtains given subscription side according to the first request message modification subscriber and/or modification routed path obtains specified circuit By path.
S23, the recipient of subscription message and/or the road of distribution subscription message are defined as by given subscription side with routed path is determined By path.
Such as, route entry can be changed to change the delivery route of subscription message:Fig. 8 is according to embodiments of the present invention repaiies Change message routing path schematic diagram, as shown in figure 8, Fig. 9 is the flow of modification routed path according to embodiments of the present invention Figure, as shown in figure 9, including:
S901, some key delivery route is changed by Web client;
Order is passed to Configuration Agent by S902, Web server;
S903, Configuration Agent changes route records of the key in database;
S904, publisher is found by the route record of the key, updates the local routing caching of publisher.
By the distribution subscription of message, according to the keyword Key1 of message, a routing relation has been generated in data In storehouse, route entry is schematically as follows:
Key:Key1
Value:Issue/ServiceA, subscription/ServiceB
Such as, under some optional scene, service C is newly deployed, it is the enhancing version for servicing B, it is necessary to subsequently replace Generation service B, then certainly will need subsequently to give service C by all message diliveries for being sent to service B.
Optionally, Command Line Interface (Command-line interface, referred to as Cli) or Web visitors can be passed through Family end, is configured agency, and the first request message is directly interacted with database server, changes route entry, amended Route entry is as follows:
Key:Key1
Value:Issue/ServiceA, subscription/ServiceC
Optionally, ServiceA local cache can also be updated, the message of so follow-up all Key1 features, directly New demand servicing C, rather than service B are delivered to, whole process is smoothly lossless to system.
In the optional embodiment according to the present embodiment, subscription is directly distributed to by message is subscribed in instruction message sender Before side, the recipient for subscribing to message can also be increased, i.e. increase subscriber temporarily, method also includes:
S31, receives the second request message that message is subscribed to for increasing;
S32, the given subscription side for subscribing to message is received according to the second request increase;
S33, indicates that message sender will subscribe to news release to increased given subscription side.
Optionally, according to above-mentioned optional embodiment, the given subscription side of subscription message is being received according to the second request increase Afterwards, shunting processing can also be carried out to subscribing to message, e.g., is sent out after can a complete subscription message be split To different subscribers, method also includes:
S41, judges whether the second request indicates to be sent to subscriber and given subscription side to subscribing to after message is shunted;
S42, is issued in judged result for that when being, will subscribe to after message asks the weighted value shunting information indicated according to second To subscriber and given subscription side.
It is specifically described with reference to scene:
By the distribution subscription of message, if based on message key Key1, service B has two parts of copy examples, all enters Go subscription, and it is non-to make a copy for pattern that the message, which is specified, then and this can carry out load balancing, i.e., for Key1 features Message, deliver strategy is delivered in turn service B two examples, i.e. subscriber ServiceB1, subscriber ServiceB2.
Route entry is schematically as follows:
Key:Key1
Value:Issue/ServiceA, subscription/ServiceB1/1, subscription/ServiceB2/1
In route entry selection, ServiceB1 and ServiceB2 weights are all 1, Key1 can be selected as in turn and disappeared The destination party of breath.
Under some optional scene, service B needs to escalate into BB, and new version needs to be dissolved into trial operation in system, So system needs the work of sub-fraction being transferred to ServiceBB, so can both allow redaction function, again If avoiding redaction faulty, the influence to system can also be reduced to minimum.
Optionally, user, by ordering Cli or Web client online, is configured agency in the present embodiment in this example, The second request message of transmission, modification message subscribing side and weight, amended route bar are directly interacted with database server Mesh is as follows:
Key:Key1
Value:Issue/ServiceA, subscription/ServiceB1/40, subscription/ServiceB2/40, subscription/ServiceBB/ 20
After modification, for Key1 message, delivering destination party has a ServiceB examples 1, ServiceB examples 2, and ServiceBB examples 3, it is 40%, 40%, 20% to deliver weight factor.So the delivery of subsequent packet, is delivered to ServiceBB only accounts for the 20% of whole subscription message packet.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-described embodiment Method the mode of required general hardware platform can be added to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing The part for having technology to contribute can be embodied in the form of software product, and the computer software product is stored in one In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are make it that a station terminal equipment (can To be mobile phone, computer, server, or network equipment etc.) method that performs each embodiment of the invention.
A kind of subscription news release device is additionally provided in the present embodiment, and the device can be used as a component or function Module is arranged on the server of distribution subscription message, and can also be arranged on other can send in the equipment of message.The dress Put for realizing above-described embodiment and preferred embodiment, carried out repeating no more for explanation.As used below, Term " module " can realize the combination of the software and/or hardware of predetermined function.Although the dress described by following examples Put and preferably realized with software, but hardware, or the realization of the combination of software and hardware is also that may and be contemplated.
Figure 10 is the structured flowchart of subscription news release device according to embodiments of the present invention, as shown in Figure 10, the device Including:
First receiving module 100, the request message for being used to send subscription message for receiving message sender transmission;
First indicating module 102, for indicate message sender by subscribe to message be directly distributed to subscriber.
Figure 11 is the alternative construction block diagram one of subscription news release device according to embodiments of the present invention, as shown in figure 11, The device is in addition to including all modules shown in Figure 10, and the first indicating module 102 includes:
Searching unit 110, the subscriber that message is subscribed to for being searched according to the subscription information that prestores subscribes to the road of message with transmission By path;
Indicating member 112, by routed path subscriber is directly distributed to for indicating that message sender will subscribe to message.
Figure 12 is the alternative construction block diagram two of subscription news release device according to embodiments of the present invention, as shown in figure 12, The device is in addition to including all modules shown in Figure 11, and the first indicating module 102 also includes:
First receiving unit 120, the subscriber and Fa that message is subscribed to for being searched in searching unit according to the subscription information that prestores Send before the routed path for subscribing to message, receive the subscription information that one or more subscribers send, wherein, subscription information Including at least one of:Subscriber needs the subscription message received, subscriber to receive the routed path for subscribing to message;
Storage unit 122, for preserving subscription information as the subscription information that prestores.
Figure 13 is the alternative construction block diagram three of subscription news release device according to embodiments of the present invention, as shown in figure 13, The device is in addition to including all modules shown in Figure 11, and the first indicating module 102 also includes:
Second receiving unit 130, the subscriber and Fa that message is subscribed to for being searched in searching unit according to the subscription information that prestores Send after the routed path for subscribing to message, receive for changing subscriber and/or changing the first request message of routed path;
Unit 132 is changed, given subscription side and/or modification route road are obtained for changing subscriber according to the first request message Footpath obtains specifying routed path.
Determining unit 134, for by given subscription side and determine routed path be defined as subscription message recipient and/or issue Subscribe to the routed path of message.
Figure 14 is the alternative construction block diagram four of subscription news release device according to embodiments of the present invention, as shown in figure 14, The device is in addition to including all modules shown in Figure 10, and device also includes:
Second receiving module 140, for indicating that message sender will subscribe to message and directly be distributed to and order in the first indicating module Before the side of readding, the second request message that message is subscribed to for increasing is received;
Increase module 142, the given subscription side of message is subscribed to for being received according to the second request increase;
Second indicating module 144, for indicating that message sender will subscribe to news release to increased given subscription side.
Figure 15 is the alternative construction block diagram five of subscription news release device according to embodiments of the present invention, as shown in figure 15, The device is in addition to including all modules shown in Figure 14, and device also includes:
Judge module 150, after the given subscription side for subscribing to message is received according to the second request increase in increase module, Judge whether the second request indicates to be sent to subscriber and given subscription side to subscribing to after message is shunted;
Diverter module 152, during for being in judged result, will subscribe to the weighted value letter that message is indicated according to the second request Subscriber and given subscription side are distributed to after breath shunting.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned module distinguishes position In multiple processors.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can The program code for performing following steps to be arranged to storage to be used for:
S51, receives the request message for being used to send subscription message that message sender is sent;
S52, indicates that message sender is directly distributed to subscriber by message is subscribed to.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, Magnetic disc or CD etc. are various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor is performed according to the program code stored in storage medium receives message hair What the side of sending was sent is used to send the request message for subscribing to message;
Alternatively, in the present embodiment, processor is performed according to the program code stored in storage medium indicates message hair The side of sending directly is distributed to subscriber by message is subscribed to.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment and optional embodiment Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realizes that they can be concentrated on single computing device, or is distributed in multiple computing devices and is constituted Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to by they Storage is performed by computing device in the storage device, and in some cases, can be to be held different from order herein They, are either fabricated to each integrated circuit modules or will be many in them by the shown or described step of row respectively Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware Combined with software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the technology of this area For personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made is any Modification, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (13)

1. a kind of dissemination method for subscribing to message, it is characterised in that including:
Receive the request message for being used to send subscription message that message sender is sent;
Indicate that the subscription message is directly distributed to subscriber by the message sender.
2. according to the method described in claim 1, it is characterised in that described to indicate that the message sender disappears the subscription Breath, which is directly distributed to subscriber, to be included:
The subscriber for subscribing to message is searched according to the subscription information that prestores and the route road for subscribing to message is sent Footpath;
Indicate that the subscription message is directly distributed to the subscription by the message sender by the routed path Side.
3. method according to claim 2, it is characterised in that the subscription message is being searched according to the subscription information that prestores Subscriber and send it is described subscribe to message routed path before, methods described also includes:
The subscription information that one or more subscribers send is received, wherein, the subscription information is included below extremely It is one of few:The subscriber needs the subscription message received, the subscriber to receive the routed path for subscribing to message;
The subscription information is preserved as the subscription information that prestores.
4. method according to claim 2, it is characterised in that being prestored in the basis, subscription information lookup is described to subscribe to After the routed path of the subscriber of message and the transmission subscription message, methods described also includes:
Receive the first request message for changing the subscriber and/or the modification routed path;
The subscriber is changed according to first request message and obtains given subscription side and/or the modification route road Footpath obtains specifying routed path;
By the given subscription side and it is described determine routed path be defined as it is described subscription message recipient and/or issue The routed path for subscribing to message.
5. according to the method described in claim 1, it is characterised in that indicate that the message sender is subscribed to described described Message is directly distributed to before subscriber, and methods described also includes:
Receive and subscribe to second request message for subscribing to message for increasing;
The given subscription side for subscribing to message is received according to the described second request increase;
Indicate the message sender by the subscription news release to the increased given subscription side.
6. method according to claim 5, it is characterised in that described according to being received the described second request increase After the given subscription side for subscribing to message, methods described also includes:
Judge it is described second request whether indicate to it is described subscription message shunt after be sent to the subscriber with The given subscription side;
When judged result is to be, the weighted value shunting information that the subscription message is indicated according to the described second request After be distributed to the subscriber and the given subscription side.
7. the method according to claim 4 to 6 any one, it is characterised in that receive and pass through Command Line Interface Cli Or first request message and/or second request message that Web client is sent.
8. a kind of distributing device for subscribing to message, it is characterised in that including:
First receiving module, the request message for being used to send subscription message for receiving message sender transmission;
First indicating module, for indicate the message sender by it is described subscription message be directly distributed to subscriber.
9. device according to claim 8, it is characterised in that first indicating module includes:
Searching unit, for searching the subscriber for subscribing to message according to the subscription information that prestores and sending described subscribe to The routed path of message;
Indicating member, for indicating that the message sender directly sends out the subscription message by the routed path Cloth gives the subscriber.
10. device according to claim 9, it is characterised in that first indicating module also includes:
First receiving unit, for searching ordering for the subscription message according to the subscription information that prestores in the searching unit Before the side of readding and the transmission routed path for subscribing to message, the subscription that one or more subscribers send is received Information, wherein, the subscription information includes at least one of:The subscription message of subscriber's needs reception, The subscriber receives the routed path for subscribing to message;
Storage unit, for preserving the subscription information as the subscription information that prestores.
11. device according to claim 9, it is characterised in that first indicating module also includes:
Second receiving unit, for searching ordering for the subscription message according to the subscription information that prestores in the searching unit After the side of readding and the transmission routed path for subscribing to message, receive for changing the subscriber and/or modification institute State the first request message of routed path;
Change unit, for according to first request message change the subscriber obtain given subscription side and/or The routed path is changed to obtain specifying routed path;
Determining unit, for by the given subscription side and described determining routed path and being defined as the subscription message to connect Debit and/or the issue routed path for subscribing to message.
12. device according to claim 8, it is characterised in that described device also includes:
Second receiving module, for indicating that the message sender is direct by the subscription message in the indicating module It is distributed to before subscriber, receives and subscribe to second request message for subscribing to message for increasing;
Increase module, for receiving the given subscription side for subscribing to message according to the described second request increase;
Second indicating module, for indicating the message sender by the subscription news release to the increased finger Determine subscriber.
13. device according to claim 12, it is characterised in that described device also includes:
Judge module, for receiving the finger for subscribing to message according to the described second request increase in the increase module After determining subscriber, judge whether second request indicate to be sent to after shunting the subscription message described in Subscriber and the given subscription side;
Diverter module, during for being in judged result, the subscription message is indicated according to the described second request The subscriber and the given subscription side are distributed to after weighted value shunting information.
CN201610067479.XA 2016-01-29 2016-01-29 Subscribe to the dissemination method and device of message Pending CN107026878A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610067479.XA CN107026878A (en) 2016-01-29 2016-01-29 Subscribe to the dissemination method and device of message
PCT/CN2016/096921 WO2017128713A1 (en) 2016-01-29 2016-08-26 Method and device for publishing subscription message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610067479.XA CN107026878A (en) 2016-01-29 2016-01-29 Subscribe to the dissemination method and device of message

Publications (1)

Publication Number Publication Date
CN107026878A true CN107026878A (en) 2017-08-08

Family

ID=59397340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610067479.XA Pending CN107026878A (en) 2016-01-29 2016-01-29 Subscribe to the dissemination method and device of message

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337120A (en) * 2018-02-01 2018-07-27 北京安控科技股份有限公司 A kind of remote upgrade method of internet-of-things terminal equipment
CN109151033A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 Communication means, device, electronic equipment and storage medium based on distributed system
CN112751892A (en) * 2019-10-30 2021-05-04 腾讯科技(深圳)有限公司 Information distribution method, device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965602A (en) * 2021-10-26 2022-01-21 广州小鹏汽车科技有限公司 Subscription and release communication method, server and system of vehicle-mounted ECU
CN115766315A (en) * 2022-10-31 2023-03-07 海尔优家智能科技(北京)有限公司 Processing method and device of component information, storage medium and electronic device

Family Cites Families (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 (en) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 Advertising management method and device
CN102891797A (en) * 2012-07-02 2013-01-23 上海交通大学 Publishing and subscription method capable of supporting message duration
WO2014194452A1 (en) * 2013-06-03 2014-12-11 华为技术有限公司 Message publishing and subscribing method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337120A (en) * 2018-02-01 2018-07-27 北京安控科技股份有限公司 A kind of remote upgrade method of internet-of-things terminal equipment
CN109151033A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 Communication means, device, electronic equipment and storage medium based on distributed system
CN112751892A (en) * 2019-10-30 2021-05-04 腾讯科技(深圳)有限公司 Information distribution method, device, equipment and storage medium
CN112751892B (en) * 2019-10-30 2022-06-17 腾讯科技(深圳)有限公司 Information distribution method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2017128713A1 (en) 2017-08-03

Similar Documents

Publication Publication Date Title
CN106031130B (en) Content distribution network framework with edge proxies
CN107026878A (en) Subscribe to the dissemination method and device of message
CN107925681A (en) The system and method that the load balance in network packet core system is defined for distributed software
CN104468502A (en) Server selection for content distribution
US8903972B2 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
JP2002140309A (en) Service system
US11936755B2 (en) Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute
CN107395686B (en) The method, apparatus and system of the long connection of switching
CN111382115B (en) Path creating method and device for network on chip and electronic equipment
US20230300106A1 (en) Data processing method, network element device and readable storage medium
CN111917838B (en) Micro-service-based processing method and device, storage medium and electronic device
CN113630428B (en) Acquisition method and acquisition system for service data
Cha et al. A mobility link service for ndn consumer mobility
CN106330994A (en) User message publishing method and system
CN104852955A (en) Data processing method and system
US7168043B2 (en) Apparatus and system for communication
CN106856456B (en) Processing method and system for cache cluster service
JP5517190B2 (en) Communication system, mapping information notification apparatus, mapping information notification method, and program
CN110324384A (en) The method and apparatus of data-pushing
CN103166978A (en) Method and device of data obtaining
JP5399276B2 (en) Content distribution system and method and program
CN106487637A (en) A kind of processing system of application message, method and application apparatus
CN116266145A (en) Method, system and equipment for processing call
CN106888240A (en) A kind of page data dissemination method and system
CN108667934A (en) Information processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20171020

Address after: 201203, Shanghai, China (Shanghai) free trade experimentation area, Blue Road No. 889, block B, 205

Applicant after: Shanghai Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corporation

TA01 Transfer of patent application right
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170808

WD01 Invention patent application deemed withdrawn after publication