CN107360082A - A kind of publish/subscribe method and device - Google Patents

A kind of publish/subscribe method and device Download PDF

Info

Publication number
CN107360082A
CN107360082A CN201710630754.9A CN201710630754A CN107360082A CN 107360082 A CN107360082 A CN 107360082A CN 201710630754 A CN201710630754 A CN 201710630754A CN 107360082 A CN107360082 A CN 107360082A
Authority
CN
China
Prior art keywords
subscriber
theme
information
publish
subject information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710630754.9A
Other languages
Chinese (zh)
Other versions
CN107360082B (en
Inventor
李娟�
李强
袁鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710630754.9A priority Critical patent/CN107360082B/en
Publication of CN107360082A publication Critical patent/CN107360082A/en
Application granted granted Critical
Publication of CN107360082B publication Critical patent/CN107360082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of publish/subscribe method and device.Wherein, method is included when receiving the theme message of theme transmission, and the transmission state to theme is updated, and the theme when sending subject information to publisher, while subject information is sent to information centre when event occurs;Receive what subscriber sent, be successfully received the feedback message and execution result back of the subject information of publisher's transmission, and stored, feedback message is successfully transmitted to information centre by subscriber, continues to send the result for performing feedback.Realize the complete monitoring to publish/subscribe process, user can check information centre at any time, know the implementing result of publish/subscribe mechanism, facilitate the implementation status of the whole mechanism of monitors distribution/subscription, the positioning of line misregistration can be entered in time when mistake occurs, even wrong backtracking, the trackability of publish/subscribe mechanism is improved, lift the manageability, maintainability and monitoring property of whole system.

Description

A kind of publish/subscribe method and device
Technical field
The present embodiments relate to research and development of software technical field, more particularly to a kind of publish/subscribe method and device.
Background technology
With the fast development of computer technology, software engineering is also developed accordingly.In software development process, hair Cloth/subscribe to as a kind of very high developing mechanism of frequency of use.In the publish/subscribe mechanism in existing, theme and subscriber It is separated from each other, when subject eventses occur, publisher passes information to subscriber, and whole mechanism is just completed.
But during publish/subscribe, in the event of mistake, or need recall implementation procedure when, execution can not be obtained Situation, such as because nonbursty network failure causes to send unsuccessful during subscriber is sent to, and publisher does not know Whether road subscriber has successfully received the information of issue, and subscriber does not know the practice condition of publisher yet, causes Subscriber subscriptions Information loss, and the information of timing error can not also obtain.In whole R&D process, substantial amounts of error message or , it is necessary to be positioned in time in event implementation procedure, information is obtained, this just needs to be monitored whole system, to obtain at any time Take the effect of execution.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of publish/subscribe method and device, to realize to publish/subscribe process Monitoring, lifted publish/subscribe mechanism maintainability and manageability.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
On the one hand the embodiment of the present invention provides a kind of publish/subscribe method, applied to information centre, including:
When receiving the theme message of theme transmission, the transmission state to theme is updated, and the theme is busy When part occurs, when sending subject information to publisher, while the subject information is sent to information centre;
Receive what subscriber sent, the feedback message and feedback for being successfully received the subject information of publisher's transmission perform knot Fruit, and stored, the feedback message is successfully transmitted to described information center by the subscriber, continues to send execution instead The result of feedback.
Optionally, described information center is indicated with bivariate table, and the row of the bivariate table represents the name of the theme, Row represent the information of the subscriber, and when theme described in the Subscriber subscriptions, element in the table of corresponding bivariate table is set It is set to the first preset value.
Optionally, described information center is indicated with the bivariate table, described when the theme for receiving theme transmission disappears During breath, the transmission state to theme be updated including:
When theme has multiple events to occur, according to the order of event generation, to each described first in the bivariate table Preset value is configured with incremental expression way, in order to inquire about the order of subject information issue.
Optionally, described information center is indicated with the bivariate table, the success for receiving the subscriber and sending The feedback message and execution result back for receiving the subject information of publisher's transmission include:
When receiving the feedback message for the subject information for being successfully received publisher's transmission that the subscriber sends, in institute State and subscriber object element corresponding with subject information is determined in bivariate table;
Set for the object element and receive identification information, for representing that the subscriber has been received by the theme letter Breath.
Optionally, described information center is indicated with the bivariate table, the success for receiving the subscriber and sending The feedback message and execution result back for receiving the subject information of publisher's transmission include:
When receiving the execution result back that the subscriber sends, determine that there is reception mark letter in the bivariate table The object element of breath;
When judging current run succeeded, then the mark that runs succeeded is set for the object element;Performed conversely, then setting Failure identifies.
Optionally, in addition to:
Receive publisher's feedback has been issued to the subject information message of subscriber, and is stored, institute After stating the subject information that publisher receives theme transmission, the subject information is sent to subscriber.
On the other hand the embodiment of the present invention provides a kind of publish/subscribe device, applied to information centre, including:
Theme receiving module, for when receiving the theme message of theme transmission, the transmission state to theme to be carried out more Newly, the theme when sending subject information to publisher, while the subject information is sent to letter when event occurs Breath center;
Subscriber Information Module, for receive subscriber transmission be successfully received publisher transmission subject information it is anti- Message and execution result back are presented, and is stored, the feedback message is successfully transmitted into described information by the subscriber After the heart, continue to send the result for performing feedback.
Optionally, the theme receiving module is the order that occurs according to event when theme has multiple events to occur, right Each first preset value in the bivariate table is configured with incremental expression way, in order to inquire about subject information issue Order module.
Optionally, the Subscriber Information Module is when the publisher that is successfully received for receiving subscriber's transmission sends Subject information feedback message when, subscriber object element corresponding with subject information is determined in the bivariate table; Set for the object element and receive identification information, for representing that the subscriber has been received by the mould of the subject information Block.
Optionally, the Subscriber Information Module includes:
Implementing result setting unit, for when receiving the execution result back that the subscriber sends, in the two dimension Determined in table with the object element for receiving identification information;When judging current run succeeded, then set for the object element Run succeeded mark;Unsuccessfully identified conversely, then setting to perform.
The embodiments of the invention provide a kind of publish/subscribe method, when receiving the theme message of theme transmission, to master The transmission state of topic is updated, and the theme is when event occurs, when sending subject information to publisher, while will be main Topic information is sent to information centre;Receive what subscriber sent, the feedback for being successfully received the subject information of publisher's transmission disappears Breath and execution result back, and stored, feedback message is successfully transmitted to information centre by subscriber, continues to send execution The result of feedback.
The advantages of technical scheme that the application provides, is, in traditional publish/subscribe, there is provided information centre, uses To be communicated with theme, publisher, subscriber, to realize the complete monitoring to publish/subscribe process, user can look at any time Information centre is seen, knows the implementing result of publish/subscribe mechanism, facilitates the implementation status of the whole mechanism of monitors distribution/subscription, energy Enough positioning for entering line misregistration in time when mistake occurs, even wrong backtracking, improve tracing for publish/subscribe mechanism Property, lift the manageability, maintainability and monitoring property of whole system.
In addition, the embodiment of the present invention provides corresponding realization device also directed to publish/subscribe method, further such that institute State method and have more practicality, described device has the advantages of corresponding.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical scheme of prior art The required accompanying drawing used is briefly described in technology description, it should be apparent that, drawings in the following description are only this hair Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of publish/subscribe method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of representation of information centre provided in an embodiment of the present invention;
Fig. 3 is another representation schematic diagram of information centre provided in an embodiment of the present invention;
Fig. 4 is another representation schematic diagram of information centre provided in an embodiment of the present invention;
Fig. 5 is another representation schematic diagram of information centre provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another publish/subscribe method provided in an embodiment of the present invention;
Fig. 7 is a kind of embodiment structure chart of publish/subscribe device provided in an embodiment of the present invention;
Fig. 8 is another embodiment structure chart of publish/subscribe device provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiment is only part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " in the description and claims of this application and above-mentioned accompanying drawing Four " etc. be for distinguishing different objects, rather than for describing specific order.In addition term " comprising " and " having " and Their any deformations, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, The step of system, product or equipment are not limited to list or unit, but the step of may include not list or unit.
After the technical scheme of the embodiment of the present invention is described, the various non-limiting realities of detailed description below the application Apply mode.
Referring first to Fig. 1, Fig. 1 is a kind of schematic flow sheet of publish/subscribe method provided in an embodiment of the present invention, this hair Bright embodiment may include herein below:
S101:When receiving the theme message of theme transmission, the transmission state to theme is updated, and the theme exists When event occurs, when sending subject information to publisher, while the subject information is sent to information centre.
S102:The feedback message and feedback for receiving the subject information for being successfully received publisher's transmission that subscriber sends are held Row result, and stored, the feedback message is successfully transmitted to described information center by the subscriber, is continued transmission and is held The result of row feedback.
Information centre is pre-created, for being communicated with theme, publisher with subscriber, obtains publish/subscribe process In each participant implementation status.Initialization foundation can be carried out while publish/subscribe person defines.When theme has event Occur, entering to submit information to be carried out to information centre, transmission of the confidence center to theme while row information is submitted to publisher Renewal, if subscriber have received the message of publisher's issue, subscriber also feeds back to information centre, tells information centre It has received the message of publisher's issue.After subscriber is finished, by the result notification center of execution, facilitate the later stage pair The monitoring of event implementing result.
Information centre can be indicated with bivariate table, and concrete form see shown in Fig. 2, and the row of bivariate table can represent described The name of theme, row represent the information (such as name of subscriber) of the subscriber, when some theme of the Subscriber subscriptions When, element in the table of subscriber's bivariate table corresponding with the theme is arranged to the first preset value;When the subscriber does not order When readding some theme, element in the table of subscriber's bivariate table corresponding with the theme is arranged to the second preset value.Information centre Record that can be overall system situation.If new theme, either new subscriber or new subscription occur simultaneously, The ranks of form are then directly changed, ensure that information centre can record all themes and subscriber constantly.
Wherein, the first preset value, the second preset value can be any method for expressing, be defined method for expressing in advance, Each inquiry is set to understand the implication of current method for expressing.If for example, some theme of Subscriber subscriptions, corresponding Increase the mark of one " 0 " in ranks.If subscriber does not subscribe to some theme, corresponding table position is empty.
For example, such as shown in Fig. 2, subscriber is respectively 1,2,3,4, theme A, B, C.Subscriber 1 is with subscribing to Person 2 have subscribed A themes and B themes, and subscriber 3 have subscribed B themes, and subscriber 4 have subscribed C themes and B themes, then bivariate table For the form of four rows five row, row is followed successively by subscriber 1, subscriber 2, the title 1,2,3,4 of subscriber 3 and subscriber 4;It is classified as master Title A, B, C of topic.Element in second row secondary series, the 3rd row is arranged to 0, represents that subscriber 1 have subscribed A with subscriber 2 Theme;The third line first row, secondary series, the 3rd row, the element of the 4th row are arranged to 0, represent subscriber 1, subscriber 2, subscribe to Person 3 and subscriber 4 have subscribed B themes;The element that fourth line the 4th arranges is arranged to 0, represents that subscriber 4 have subscribed C themes.
When theme has multiple events to occur, according to the order of event generation, to each described first in the bivariate table Preset value is configured with incremental expression way, in order to inquire about the order of subject information issue.
Incremental expression way can be to be indicated alphabetical with lower target mode, and subscript is incremented by successively, to represent suitable Sequence, or the mode of ascending numerical are indicated, and this does not influence the realization of the application.
By taking above-mentioned instantiation as an example, specifically refer to shown in Fig. 3, when theme occur, when publisher releases news, Theme simultaneously announcement information center, according to event occur order, by the whole that row corresponding to theme has " 0 " be substituted for " P1 ", " P2 " ..., theme execution is indicated, there is information issue." Pn " mark uses incremental method, in order to which subscriber receives in order To issuing subject, know which theme first triggers when being fed back, triggered after which theme.Such as B themes first occur, C master Occur after topic, the element of the third line first row, secondary series, the 3rd row, the 4th row is arranged to P1, the element that fourth line the 4th arranges It is arranged to P2.
When receiving the feedback message for the subject information for being successfully received publisher's transmission that the subscriber sends, in institute State and subscriber object element corresponding with subject information is determined in bivariate table;
Set for the object element and receive identification information, for representing that the subscriber has been received by the theme letter Breath.
Identification information can be any method for expressing, be defined method for expressing in advance, understand each inquiry and work as The implication of preceding method for expressing.For example, when if subscriber receives theme, increase by one " G " in corresponding ranks Mark.
Information centre record subscriber receives event, when subscriber receives the theme of publisher's issue, into information The heart, in arranging corresponding to query subscription person, in indicating according to sequential search ascending Pn without " G " " Pn ", the minimum table of n values In lattice, " G " mark is inserted.Represent that subscriber has received the information of publisher's transmission.
By taking the instantiation in Fig. 2 as an example, specifically refer to shown in Fig. 4, when subscriber 3 and subscriber 4 receive hair During the B themes that cloth person sends, the element of the row of the third line the 3rd, the 4th row is increased into " G ", as identification information.
When receiving the execution result back that the subscriber sends, determine that there is reception mark letter in the bivariate table The object element of breath;
When judging current run succeeded, then the mark that runs succeeded is set for the object element;Performed conversely, then setting Failure identifies.
Unsuccessfully mark can be any method for expressing to the mark that runs succeeded with putting execution, be defined expression side in advance Method, each inquiry is set to understand the implication of current method for expressing.If for example, running succeeded, increase in corresponding ranks Add the mark of one " Y ".
Shown in the implementation status of information centre record subscriber, after subscriber is finished, subscriber accesses letter again Breath center, according to the implementation status of subscriber, fed back.Inquire about in respective column, according to Pn by having to big sequential search " PnG " (n=1,2 ...) mark, the minimum form of n values inserts feedback result.If run succeeded, in subscriber couple In the row answered " PnG " (n=1,2 ...) mark increase " Y ", become " PnGY " (n=1,2 ...), represent subscriber perform into Work(;If performing failure, then in row corresponding to subscriber " PnG " (n=1,2 ...), mark increase " N ", become " PnGN " (n=1,2 ...), represent that subscriber performs failure.
By taking the instantiation in Fig. 2 as an example, specifically refer to shown in Fig. 5, when subscriber 3 runs succeeded, subscriber 4 holds After row failure, the third line the 3rd is arranged into increase " Y ", as successful execution identification information;The element increase " N " of 4th row, as Failure performs identification information.
In technical scheme provided in an embodiment of the present invention, in traditional publish/subscribe, there is provided information centre, uses To be communicated with theme, publisher, subscriber, to realize the complete monitoring to publish/subscribe process, user can look at any time Information centre is seen, knows the implementing result of publish/subscribe mechanism, facilitates the implementation status of the whole mechanism of monitors distribution/subscription, energy Enough positioning for entering line misregistration in time when mistake occurs, even wrong backtracking, improve tracing for publish/subscribe mechanism Property, lift the manageability, maintainability and monitoring property of whole system.
Under a kind of specific embodiment, present invention also provides another embodiment, referring to Fig. 6, specifically may be used Including:
S103:Receive publisher's feedback has been issued to the subject information message of subscriber, and is deposited Storage, after the publisher receives the subject information of theme transmission, the subject information is sent to subscriber.
Increase the information of publisher, can be each during former bivariate table is changed into three-dimensional table carry out record publish/subscribe The implementation status of individual participant.Record the releasing news of publisher, run succeeded information, can more accurately, detailed return Trace back current implementation procedure, be favorably improved the trackability of publish/subscribe mechanism, lifted whole system manageability, can Maintainability and monitoring property.
The embodiment of the present invention provides corresponding realization device also directed to publish/subscribe method, further such that the side Method has more practicality.Publish/subscribe device provided in an embodiment of the present invention is introduced below, issue described below/ Subscribing to device can be mutually to should refer to above-described publish/subscribe method.
Referring to Fig. 7, Fig. 7 is a kind of knot of the publish/subscribe device provided in an embodiment of the present invention under specific implementation process Composition, the device may include:
Theme receiving module 701, for when receiving the theme message of theme transmission, the transmission state to theme to be carried out Renewal, the theme when event occurs, to publisher send subject information when, while by the subject information send to Information centre;
Subscriber Information Module 702, for receiving the subject information for being successfully received publisher's transmission of subscriber's transmission Feedback message and execution result back, and stored, the feedback message is successfully transmitted to the letter by the subscriber Behind breath center, continue to send the result for performing feedback.
Under some embodiments of the embodiment of the present invention, the theme receiving module 701 can be when theme have it is more When individual event occurs, according to the order of event generation, to each first preset value in the bivariate table with incremental expression Mode is configured, in order to inquire about the module of the order of subject information issue.
In other embodiment, the Subscriber Information Module 702 can be when the reception subscriber sends When being successfully received the feedback message of the subject information of publisher's transmission, the subscriber and theme are determined in the bivariate table Object element corresponding to information;Set for the object element and receive identification information, for representing that the subscriber has received To the module of the subject information.
This time, the Subscriber Information Module 702 may also include:
Implementing result setting unit 7021, for when receiving the execution result back that the subscriber sends, described Determined in bivariate table with the object element for receiving identification information;Then it is the object element when judging current run succeeded Setting runs succeeded mark;Unsuccessfully identified conversely, then setting to perform.
Optionally, in some embodiments of the present embodiment, referring to Fig. 8, described device can also for example include:
Distributor information module 703, the subject information is had been issued into subscription for receive publisher feedback The message of person, and stored, after the publisher receives the subject information of theme transmission, the subject information is sent To subscriber.
The function of each functional module of publish/subscribe device described in the embodiment of the present invention can be according in above method embodiment Method specific implementation, its specific implementation process is referred to the associated description of above method embodiment, and here is omitted.
From the foregoing, it will be observed that the embodiment of the present invention is in traditional publish/subscribe, there is provided information centre, to theme, hair Cloth person, subscriber are communicated, and to realize the complete monitoring to publish/subscribe process, user can check information centre at any time, Know the implementing result of publish/subscribe mechanism, facilitate the implementation status of the whole mechanism of monitors distribution/subscription, can be sent out in mistake Enter the positioning of line misregistration, even wrong backtracking when raw in time, improve the trackability of publish/subscribe mechanism, lifting is whole Manageability, maintainability and the monitoring property of system.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be with it is other The difference of embodiment, between each embodiment same or similar part mutually referring to.For dress disclosed in embodiment For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part Explanation.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
A kind of publish/subscribe method provided by the present invention and device are described in detail above.Herein should The principle and embodiment of the present invention are set forth with specific case, the explanation of above example is only intended to help and managed Solve the method and its core concept of the present invention.It should be pointed out that for those skilled in the art, do not departing from On the premise of the principle of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into this hair In bright scope of the claims.

Claims (10)

  1. A kind of 1. publish/subscribe method, it is characterised in that applied to information centre, including:
    When receiving the theme message of theme transmission, the transmission state to theme is updated, and the theme is having event hair When raw, when sending subject information to publisher, while the subject information is sent to information centre;
    Receive what subscriber sent, be successfully received the feedback message and execution result back of the subject information of publisher's transmission, And stored, the feedback message is successfully transmitted to described information center by the subscriber, is continued transmission and is performed feedback Result.
  2. 2. publish/subscribe method according to claim 1, it is characterised in that described information center carries out table with bivariate table Show, the row of the bivariate table represents the name of the theme, and row represent the information of the subscriber, when the Subscriber subscriptions institute When stating theme, element in the table of corresponding bivariate table is arranged to the first preset value.
  3. 3. publish/subscribe method according to claim 2, it is characterised in that described information center is entered with the bivariate table Row represent, it is described when receive theme transmission theme message when, the transmission state to theme be updated including:
    It is default to each described first in the bivariate table according to the order of event generation when theme has multiple events to occur Value is configured with incremental expression way, in order to inquire about the order of subject information issue.
  4. 4. publish/subscribe method according to claim 2, it is characterised in that described information center is entered with the bivariate table Row expression, the feedback message and feedback for receiving the subject information for being successfully received publisher's transmission that the subscriber sends Implementing result includes:
    When receiving the feedback message for the subject information for being successfully received publisher's transmission that the subscriber sends, described two Subscriber object element corresponding with subject information is determined in dimension table;
    Set for the object element and receive identification information, for representing that the subscriber has been received by the subject information.
  5. 5. publish/subscribe method according to claim 3, it is characterised in that described information center is entered with the bivariate table Row expression, the feedback message and feedback for receiving the subject information for being successfully received publisher's transmission that the subscriber sends Implementing result includes:
    When receiving the execution result back that the subscriber sends, determined in the bivariate table with reception identification information Object element;
    When judging current run succeeded, then the mark that runs succeeded is set for the object element;Failure is performed conversely, then setting Mark.
  6. 6. the publish/subscribe method according to claim 1 to 5 any one, it is characterised in that also include:
    Receive publisher's feedback has been issued to the subject information message of subscriber, and is stored, the hair After cloth person receives the subject information of theme transmission, the subject information is sent to subscriber.
  7. A kind of 7. publish/subscribe device, it is characterised in that applied to information centre, including:
    Theme receiving module, for when receiving the theme message of theme transmission, the transmission state to theme to be updated, institute Theme is stated when event occurs, when sending subject information to publisher, while the subject information is sent into information The heart;
    Subscriber Information Module, disappear for receiving the feedback for the subject information for being successfully received publisher's transmission of subscriber's transmission Breath and execution result back, and stored, the feedback message is successfully transmitted to described information center by the subscriber, Continue to send the result for performing feedback.
  8. 8. publish/subscribe device according to claim 7, it is characterised in that the theme receiving module is when theme has When multiple events occur, according to the order of event generation, to each first preset value in the bivariate table with incremental table It is configured up to mode, in order to inquire about the module of the order of subject information issue.
  9. 9. publish/subscribe device according to claim 8, it is characterised in that the Subscriber Information Module is when reception When what the subscriber sent is successfully received the feedback message of the subject information of publisher's transmission, determined in the bivariate table Subscriber object element corresponding with subject information;Set for the object element and receive identification information, for representing The subscriber has been received by the module of the subject information.
  10. 10. publish/subscribe device according to claim 9, it is characterised in that the Subscriber Information Module includes:
    Implementing result setting unit, for when receiving the execution result back that the subscriber sends, in the bivariate table It is determined that with the object element for receiving identification information;When judging current run succeeded, then set and perform for the object element Success flag;Unsuccessfully identified conversely, then setting to perform.
CN201710630754.9A 2017-07-28 2017-07-28 Publishing/subscribing method and device Active CN107360082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710630754.9A CN107360082B (en) 2017-07-28 2017-07-28 Publishing/subscribing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710630754.9A CN107360082B (en) 2017-07-28 2017-07-28 Publishing/subscribing method and device

Publications (2)

Publication Number Publication Date
CN107360082A true CN107360082A (en) 2017-11-17
CN107360082B CN107360082B (en) 2020-08-25

Family

ID=60284474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710630754.9A Active CN107360082B (en) 2017-07-28 2017-07-28 Publishing/subscribing method and device

Country Status (1)

Country Link
CN (1) CN107360082B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597694A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 Message dilivery current-limiting method and device, electronic equipment
CN109600375A (en) * 2018-12-13 2019-04-09 锐捷网络股份有限公司 Message tracing method, device, electronic equipment and storage medium
CN110113381A (en) * 2019-04-09 2019-08-09 深圳前海微众银行股份有限公司 The method and device of theme is subscribed in a kind of block chain
CN114328156A (en) * 2021-12-28 2022-04-12 苏州万店掌网络科技有限公司 Health detection method, device and equipment of protocol port and readable storage medium
CN116738936A (en) * 2023-01-13 2023-09-12 太极计算机股份有限公司 Emergency information release method and platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system
CN105099882A (en) * 2015-07-09 2015-11-25 杭州电子科技大学 MQTT-based cloud pushing method and system
US20150349934A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Application-level acknowledgements
CN106130882A (en) * 2016-07-13 2016-11-16 北京百度网讯科技有限公司 For the method and apparatus transmitting message
CN106293968A (en) * 2016-08-04 2017-01-04 华中科技大学 A kind of intercommunication system based on Kafka message-oriented middleware and method
CN106789245A (en) * 2016-12-22 2017-05-31 浪潮通信信息系统有限公司 A kind of instruction based on JMS performs service aid and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system
US20150349934A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Application-level acknowledgements
CN105099882A (en) * 2015-07-09 2015-11-25 杭州电子科技大学 MQTT-based cloud pushing method and system
CN106130882A (en) * 2016-07-13 2016-11-16 北京百度网讯科技有限公司 For the method and apparatus transmitting message
CN106293968A (en) * 2016-08-04 2017-01-04 华中科技大学 A kind of intercommunication system based on Kafka message-oriented middleware and method
CN106789245A (en) * 2016-12-22 2017-05-31 浪潮通信信息系统有限公司 A kind of instruction based on JMS performs service aid and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597694A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 Message dilivery current-limiting method and device, electronic equipment
CN109600375A (en) * 2018-12-13 2019-04-09 锐捷网络股份有限公司 Message tracing method, device, electronic equipment and storage medium
CN109600375B (en) * 2018-12-13 2021-07-16 锐捷网络股份有限公司 Message tracking method and device, electronic equipment and storage medium
CN110113381A (en) * 2019-04-09 2019-08-09 深圳前海微众银行股份有限公司 The method and device of theme is subscribed in a kind of block chain
CN110113381B (en) * 2019-04-09 2023-04-07 深圳前海微众银行股份有限公司 Method and device for subscribing theme in block chain
CN114328156A (en) * 2021-12-28 2022-04-12 苏州万店掌网络科技有限公司 Health detection method, device and equipment of protocol port and readable storage medium
CN114328156B (en) * 2021-12-28 2023-06-16 苏州万店掌网络科技有限公司 Health detection method, device and equipment of protocol port and readable storage medium
CN116738936A (en) * 2023-01-13 2023-09-12 太极计算机股份有限公司 Emergency information release method and platform

Also Published As

Publication number Publication date
CN107360082B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN107360082A (en) A kind of publish/subscribe method and device
DE102016125808B4 (en) Peer-based offline delivery of notifications
CN104376017B (en) The method and system of data synchronization are carried out between database
CN103970833B (en) The solution of bi-directional synchronization datacycle in a kind of heterogeneous database synchronization system based on daily record
CN113347164B (en) Block chain-based distributed consensus system, method, device and storage medium
CN106775623A (en) Plan the processing method and processing device of allocation list
CN105701159B (en) A kind of data synchronization unit and method
CN107113341A (en) The system of the high-throughput processing of affairs in the Distributed Relation Database Management System divided for data
CN110110509A (en) Right management method and Related product
CN104301990B (en) A kind of method and device of data syn-chronization
CN106358065A (en) Multimedia information processing method and system
CN106453420A (en) Request processing device and method and terminal
CN110290168A (en) Data transmission method for uplink, device, server and storage medium
CN109376167A (en) Selection of specialists method, apparatus and server
CN103701653B (en) The processing method of a kind of interface hot plug configuration data and network configuration server
CN111142746A (en) System quota calculation method and device
CN109800081A (en) A kind of management method and relevant device of big data task
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN104363257B (en) A kind of user interface data method for refreshing and equipment
CN107704771B (en) A kind of management system based on third party's online training platform
CN105827563B (en) Information Authentication method, halfpace and business support system
CN106681760A (en) Transaction processing method and device based on client engineering project management system
CN107402826B (en) A kind of method and device carrying out remote procedure call in an asynchronous manner
CN108777603A (en) A kind of data transmission method, device, storage medium and electronic equipment
CN106709051A (en) Method, equipment and system for displaying comparison information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200727

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant