CN105553682B - Event notification method and the system notified for event - Google Patents
Event notification method and the system notified for event Download PDFInfo
- Publication number
- CN105553682B CN105553682B CN201510979999.3A CN201510979999A CN105553682B CN 105553682 B CN105553682 B CN 105553682B CN 201510979999 A CN201510979999 A CN 201510979999A CN 105553682 B CN105553682 B CN 105553682B
- Authority
- CN
- China
- Prior art keywords
- event
- theme
- address
- notification
- network device
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1859—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of event notification method and for the system of event notice, which includes at least one clustered node, multiple network equipments and multiple event subscription persons, and event subscription person includes client or server;Clustered node is connect with multiple network equipments, and each network equipment is connect with one or more event subscription persons, and theme ordered by one or more event subscription persons of same network equipment connection is identical.Cluster host node receives after notification event, the theme of notification event is waited for according to this, corresponding relationship between query event theme and the address of the network equipment, the address of the corresponding destination network device of theme to notification event is obtained, and destination network device will be sent to notification event according to the address of destination network device;Finally, the whole event subscription persons that will be connected to notification event multicast to itself by destination network device.The message transmission quantity for reducing network layer improves event notice efficiency.
Description
Technical field
The present invention relates to distributed system technical fields, notify more particularly to a kind of event notification method and for event
System.
Background technique
The computer system that distributed system is made of the process resource of multiple interconnections, they are in whole system
The same task is performed in unison under control, dependent on the procedure, data or hardware of concentration, these resources can be geographically phase
Neighbour, alternatively, geographically dispersing;These imperceptible resources of user are distributions, and just looking like is a unified entirety.
In a distributed system, how to coordinate different services to carry out work to be one of critical issue, event notification mechanism
As a kind of service interaction mode of lower coupling, it is widely applied.Event notification mechanism includes that event publisher, event are ordered
Reader and event agent's cluster Three role, wherein event publisher is the producer of event;Event agent's cluster is using distribution
Formula system.The physical entity of event publisher and event subscription person may each be server or terminal.
Event subscription person subscribes to the event oneself paid close attention to, after event publisher generation event, thing to event agent's cluster
Event is sent to corresponding event subscription person by part Agent cluster one by one.It is assumed that there have 10 event subscription persons to have subscribed to be same
Event topic, after the event of the theme generates, event agent's cluster needs send the thing to this 10 event subscription persons respectively
Part.
When a certain event topic has a large amount of event subscription person, using above-mentioned event notification method, event agent
The number of objects that cluster needs to send event is very big, it will causes network layer message transmission quantity huge, it is logical to thereby reduce event
Know efficiency.
Summary of the invention
A kind of distributed event notification method and the system for event notice are provided in the embodiment of the present invention, to solve
The problem of event notice low efficiency existing in the prior art.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
In a first aspect, the present invention provides a kind of event notification method, event notification method is applied in storage system, storage
System includes at least one clustered node, multiple network equipments and multiple event subscription persons, event subscription person include client or
Person's server;Clustered node is connect with multiple network equipments, and each network equipment is connect with one or more event subscription persons, and
And theme ordered by one or more event subscription persons of the same network equipment connection is identical;Wherein, event notification method
It include: that clustered node is received to notification event, wherein to notification event include theme;Then, clustered node is according to thing to be notified
Corresponding relationship between the theme and event topic of part and the address of the network equipment determines that the theme to notification event is corresponding
Destination network device address, and destination network device will be sent to notification event according to the address of destination network device;
Destination network device will give the event subscription person of destination network device connection to notification event multicast.
The event notification method that first aspect provides, clustered node only need to send once thing to be notified to destination network device
Part, destination network device wait for notification event to the event subscription person's multicast connecting with itself;Significantly reduce disappearing for network layer
Transmission quantity is ceased, the scale of communication information is reduced, event is improved and notifies efficiency.
With reference to first aspect, in the first possible implementation of the first aspect, it receives in clustered node wait notify
Before event, clustered node receives the subscription message of event subscription person, wherein subscribes in message comprising ordered by event subscription person
Theme;The master that message is included is subscribed to if do not included in the corresponding relationship between event topic and the address of the network equipment
Topic, then select the address of other network equipments from storage system, and establish subscribe to the message theme that is included with it is selected
Corresponding relationship between the address of the network equipment.
It with reference to first aspect, in the second possible implementation of the first aspect, further include other in storage system
Clustered node;Clustered node reception event subscription person subscription message, further includes: clustered node will subscribe to message be sent to it is other
Clustered node;When clustered node failure, theme and storage that other clustered nodes are included according to the subscription message received
Multiple network equipments that system includes redefine the address for subscribing to the corresponding network equipment of the included theme of message.
The event notification method that the possible implementation of second of first aspect provides, clustered node receive subscription and disappear
After breath, which is sent to other clustered nodes, other cluster sections after cluster host node breaks down, in system
Point can replace cluster host node work, it is only necessary to re-establish event subscription person subscription theme and the network equipment address it
Between corresponding relationship.After greatly reducing event agent's clustered node failure, the time delay of whole event Agent cluster fault recovery,
Improve the efficiency that event notifies under event agent's clustering fault scene.
It with reference to first aspect, in a third possible implementation of the first aspect, further include other in storage system
Clustered node;Clustered node is received to notification event, further includes: clustered node will be sent to other cluster sections to notification event
Point;When clustered node breaks down, other clustered nodes are according to receiving to notification event and event topic and network
Corresponding relationship between the address of equipment determines the address of the corresponding destination network device of theme to notification event.
The third possible implementation of first aspect mentions the event notification method in east, and clustered node is received wait notify
After event, this is waited for that notification event is sent to other nodes, it, will thing be notified by other clustered nodes when clustered node failure
Part is sent to corresponding destination network device, after greatly reducing event agent's clustered node failure, whole event Agent cluster
The time delay of fault recovery improves the efficiency that event notifies under event agent's clustering fault scene.
Second aspect, the present invention provide a kind of event notice system, which includes at least one clustered node, multiple nets
Network equipment and multiple event subscription persons, the event subscription person include client or server;The clustered node with it is described
Multiple network equipment connections, each network equipment is connect with one or more event subscription persons, and the same network is set
Theme ordered by one or more event subscription persons of standby connection is identical;Clustered node is used to execute the first of first aspect
The event notification method that any one possible implementation provides to the third;Destination network device is used for will be to notification event
Multicast gives the event subscription person of destination network device connection.
By above technical scheme as it can be seen that distributed event notification method provided in an embodiment of the present invention, cluster host node connect
It receives after notification event, the theme of notification event, pair between query event theme and the address of the network equipment is waited for according to this
It should be related to, obtain the address of the corresponding destination network device of theme to notification event, and according to the address of destination network device
Destination network device will be sent to notification event;Finally, by destination network device itself company, institute will be given to notification event multicast
The whole event subscription persons connect.Event notification method provided in this embodiment, cluster host node need to only be sent out to destination network device
It send once to notification event, this is waited for that notification event is sent to each event subscription person in group by destination network device, greatly
The message transmission quantity for reducing network layer, reduces the scale of communication information, improves event notice efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of system for event notice provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of clustered node provided in an embodiment of the present invention;
Fig. 3 is that a kind of process of event notification method provided in an embodiment of the present invention applied to system shown in Figure 1 is illustrated
Figure;
Fig. 4 is that the process of another event notification method provided in an embodiment of the present invention applied to system shown in Figure 1 is shown
It is intended to;
Fig. 5 is the flow chart of another event notification method provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another system for event notice provided in an embodiment of the present invention;
Fig. 7 is the flow chart provided in an embodiment of the present invention applied to the event notification method in system shown in fig. 5.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 1, for a kind of structural schematic diagram of the system for event notice provided in an embodiment of the present invention, the system
Including at least one clustered node, multiple network equipments and multiple event subscription persons.
At least one clustered node constitutes event agent's cluster, and each clustered node can connect multiple network equipments.
The network equipment can connect one or more event subscription persons, moreover, one or more events of same network equipment connection
Theme ordered by subscriber is identical, the corresponding multicast group of each network equipment, connected one or more of the network equipment
A event subscription person is the member of the multicast group.In other words, the event subscription person that subscription has identical theme is divided into same
In a multicast group.
It should be noted that can pass through between clustered node and the network equipment and event subscription person and the network equipment
Wired mode connection, can also connect, the present invention is not intended to limit this wirelessly.
As shown in Figure 1, the clustered node in event agent's cluster includes clustered node A, clustered node B and clustered node C,
Wherein, clustered node A is host node, and clustered node B and C are from node.Host node notifies that redundancy is standby from node for event
Part effect, after host node failure, can according to certain policy selection from node as new host node.Clustered node can
To be server.
Clustered node A is connect with the network equipment I, II and III respectively;The network equipment can be with the hard of IP multicast-capable
Part equipment or software, for example, router.Theme ordered by network equipment I connection event subscriber a and b, i.e. a and b is identical;
Theme ordered by network equipment II connection event subscriber c and d, c and d is identical;Network equipment III connection event subscriber e
And theme ordered by f, e and f is identical.
Event subscription person can be client or server, for sending the thing subscribing to message subscribing and needing to clustered node
Part is subscribed in message comprising theme ordered by event subscription person.For example, event subscription person can be some APP
(Application, application program) client, the theme which subscribes to is " XX urban weather ", and clustered node can
To be the corresponding server of APP client.
It referring to fig. 2, is a kind of structural schematic diagram of clustered node provided in an embodiment of the present invention, as shown in Fig. 2, cluster section
Point includes bus 210, is connected to the processor 220, memory 230 and interface 240 of bus 210.
For storing instruction, processor 220 is used to execute the instruction in memory for completing event notice to memory 230
Process.Memory 230 may include buffer, for storing other information.Below in conjunction with FIG. 1 to FIG. 3, event is discussed in detail
The process of notification method:
It is a kind of process of the event notification method applied to system shown in Figure 1 provided in an embodiment of the present invention referring to Fig. 3
Figure, as shown in figure 3, this method may include:
S210, cluster host node are received to notification event;It wherein, include the theme of event to notification event.
In system shown in FIG. 1, cluster host node, that is, clustered node A.After event publisher publication event, which is sent out
Clustered node A is given, the event that clustered node A is received is i.e. to notification event.Wherein, by clustered node shown in Fig. 2
Interface 240 receive to notification event.
For example, being the event about " XX urban weather " that some APP server is issued, event publisher to notification event
It is the corresponding server of the APP with clustered node.
S220, cluster host node are determined according to the corresponding relationship between event topic and the address of the network equipment wait notify
The address of the corresponding destination network device of the theme of event.
In some embodiments of the invention, event subscription person can send to clustered node A and subscribe to message, wherein subscribe to
Include theme ordered by event subscription person in message.Clustered node A different themes according to ordered by event subscription person divide
To under the different network equipments, that is, establish the corresponding relationship between event topic and the address of the network equipment.Wherein, event topic
Corresponding relationship between the address of the network equipment is possibly stored in the memory 220 of clustered node shown in Fig. 2.
For example, the theme that event subscription person a, b are subscribed to is " XX urban weather ", then, by theme " XX urban weather "
Network equipment I is distributed to, that is, establishes the corresponding relationship between theme " XX urban weather " and the address of network equipment I.
It is " XX urban weather " when clustered node A receives theme after notification event, query event theme and network
Corresponding relationship between the address of equipment obtains the address for waiting for network equipment I corresponding to the theme of notification event.Wherein, by
Processor 220 in clustered node shown in Fig. 2 executes the instruction being stored in memory 230, determines the master to notification event
Inscribe the address of corresponding destination network device.
S230, cluster host node will be sent to destination network device to notification event according to the address of destination network device.
Theme is that " XX urban weather " is sent to net to notification event according to the address of network equipment I by clustered node A
Network equipment I, clustered node A are sent to network equipment I only to need to carry out once to the process of notification event.
Wherein, destination network device will be sent to notification event by the interface 240 in clustered node shown in Fig. 2.
S240, destination network device will give the event subscription person of destination network device connection to notification event multicast.
The event subscription person for subscribing to identical theme is divided into a multicast group, that is, the event subscription person for subscribing to identical theme connects
Connect the same network equipment.
In the system shown in figure 1, event subscription the person a and b of network equipment I connection, then network equipment I is receiving collection
Group node A send about " XX urban weather " to notification event, event subscription person a and b are sent to by multicast mode.
Event notification method provided in this embodiment, cluster host node receive after notification event, wait notifying according to this
The theme of event, the corresponding relationship between query event theme and the address of the network equipment, obtains the theme pair to notification event
The address for the destination network device answered, and target network will be sent to notification event according to the address of destination network device and set
It is standby;Finally, the whole event subscription persons that will be connected to notification event multicast to itself by destination network device.The present embodiment mentions
The event notification method of confession, cluster host node need to only be sent to destination network device once to notification event, destination network device
This is waited for that notification event is sent to each event subscription person in group, significantly reduces the message transmission quantity of network layer, is reduced
The scale of communication information improves event notice efficiency.
It referring to fig. 4, is the method flow diagram of another event notice provided in an embodiment of the present invention, as shown in figure 4, the party
It is further comprising the steps of on the basis of method embodiment shown in Fig. 3:
S310, cluster host node receive the subscription message that event subscription person sends, and subscribing to message includes event subscription person institute
The theme of subscription.
S320, the inquiry of cluster host node, in the corresponding relationship between event topic and the address of the network equipment whether include
The theme that the subscription message received is included;If do not included, S330 is executed;If comprising executing S340.
When cluster host node receives for the first time subscribes to message, event topic and the network equipment are not present in cluster host node
Address between corresponding relationship, therefore, cluster host node receive subscribe to message after execute S330.
S330 selects other network equipments from the system notified for event, and establishes and subscribe to the master that message is included
Corresponding relationship between topic and the address of the network equipment of selection.
Wherein, other network equipments refer to be not included in it is corresponding between above-mentioned event topic and the address of the network equipment
The network equipment in relationship.
According to event topic and the one-to-one principle of the network equipment, establish between event topic and the address of the network equipment
Corresponding relationship.
The event subscription person for sending the subscription message is divided into where the network equipment corresponding to the theme by S340
In group.
If the theme for being included comprising subscribing to message in the corresponding relationship between event topic and the address of the network equipment,
Then directly the event subscription person for sending the subscription message is divided into the group where the network equipment corresponding to the event topic,
Increase the event subscription person for sending the subscription message i.e. in the member of the network equipment.
After having executed S330 or S340, S210~S240 is executed, the implementation process of S210~S240 is shown in Figure 3
Embodiment, details are not described herein again.
Event notification method provided in this embodiment, cluster host node after receiving the subscription message of event subscription person,
Establish the corresponding relationship subscribed between the message theme for being included and the address of the network equipment.When receiving after notification event,
According to the theme and corresponding relationship to notification event, the address to the corresponding destination network device of notification event is obtained;And according to
The address of destination network device will be sent to destination network device to notification event;Finally, will be wait notify by destination network device
Whole event subscription persons that event multicast is connected to itself.The message transmission quantity of network layer is significantly reduced, is reduced logical
The scale for believing message improves event notice efficiency.
It is the flow chart of another event notification method provided in an embodiment of the present invention, this implementation is in Fig. 4 institute referring to Fig. 5
Show further comprising the steps of on the basis of embodiment:
The subscription message received is sent to other clustered nodes by S410, cluster host node.
Cluster host node receives in S310 subscribe to message after, other clusters for which being sent in system
Node.I.e. cluster host node is by the subscription message synchronization in other clustered nodes into system.
S420, when cluster host node failure, other clustered nodes are according to subscribing in the message theme that is included and system
The network equipment, redefine the address of the corresponding network equipment of the included theme of subscription message.
When cluster host node failure, by other clustered nodes in event agent's cluster according to certain common association of strategy
Quotient redefines out a new cluster host node.And failure is obtained in the node never to be broken down by new cluster host node
The event topic that node is safeguarded, and according to System Network Architecture redefine with the event topic corresponding to the network equipment,
Establish the corresponding relationship between the event topic and the address of the corresponding network equipment.Then, the thing of the event topic will be subscribed to
Part subscriber is added in the group of the network equipment redefined out.
Event notification method provided in this embodiment, cluster host node receive the subscription message of event subscription person's transmission
Afterwards, in other clustered nodes by the subscription message synchronization into system.After cluster host node breaks down, its in system
Its clustered node can replace the work of cluster host node, it is only necessary to re-establish the theme and the network equipment of event subscription person's subscription
Address between corresponding relationship.After greatly reducing event agent's clustered node failure, whole event Agent cluster failure is extensive
Multiple time delay improves the efficiency that event notifies under event agent's clustering fault scene.
Referring to Fig. 6, for the structural schematic diagram of another system for event notice provided in an embodiment of the present invention, this reality
It applies in example, each clustered node in event agent's cluster both participates in event notification process.
Event agent's cluster includes clustered node A1, B1, C1, wherein A1 is cluster host node.The network equipment includes network
Equipment IV, V, VI, wherein clustered node A1 connection network equipment IV, clustered node B1 connection network equipment V, clustered node C1
Connect network equipment VI.
The event subscription person for subscribing to identical theme is divided into the group of a network equipment by clustered node.Such as Fig. 5 institute
Show, the network equipment IV connection event subscriber a1 and b1, the network equipment V connection event subscriber c1 and d1, network equipment VI company
Take over a job part subscriber e1 and d1.That is, the theme that a1 and b1 is subscribed to is identical, the theme that c1 and d1 is subscribed to is identical, what e1 and d1 were subscribed to
Theme is identical.
Referring to Fig. 7, for the process provided in an embodiment of the present invention applied to the event notification method in system shown in fig. 6
Figure, as shown in fig. 7, this method may comprise steps of:
S610, cluster host node receive the subscription message that event subscription person sends, and subscribing to message includes event subscription person institute
The theme of subscription.
S620, cluster host node will subscribe to message and be sent to other clustered nodes, and corresponding for different theme distribution
Clustered node.
S630, cluster host node and other clustered nodes establish the address of the theme and the network equipment that itself are managed respectively
Between corresponding relationship.
S640, cluster host node are received to notification event, and other clustered nodes will be sent to notification event.
Cluster host node receives after notification event, this is waited for that notification event is synchronized in other clustered nodes.
S650, clustered node corresponding to the theme to notification event, according to notification event theme and event master
Corresponding relationship between topic and the address of the network equipment, obtains the address of the destination network device to notification event.
Clustered node corresponding to theme to notification event, which refers to be responsible for sending to event subscription person, to be somebody's turn to do to notification event
Clustered node.
Cluster host node and other clustered nodes determine whether should be certainly to notification event according to the theme to notification event
Bear the theme of duty;If it is, obtaining the mesh to notification event according to the corresponding relationship between event topic and the network equipment
Mark the address of the network equipment;If not, without any processing.
For example, clustered node corresponding to theme to notification event is clustered node B1, moreover, clustered node B1 is determined
It is out network equipment V to the destination network device of notification event.
S606, clustered node corresponding to the theme to notification event, will be wait notify according to the address of destination network device
Event is sent to destination network device.
It is still illustrated with the example in S605, clustered node B1 will be sent to network equipment V to notification event.
S607, destination network device is by being sent to notification event by multicast mode of receiving and destination network device
The event subscription person of connection.
Network equipment V will give event subscription person c1 and d1 to notification event multicast.
In addition, remaining normal clustered node is according to certain plan when the cluster host node failure in system shown in Figure 6
Slightly (for example, loading condition of each clustered node) joint consultation determines that new cluster host node, new clustered node obtain
The event topic that the clustered node of failure is safeguarded, and according to the network architecture of itself determine the event topic corresponding to network
Equipment.Finally, the event subscription person for subscribing to the event topic is added in the group of the network equipment redefined out.
When other clustered node failures in system shown in Figure 6, selected again by cluster host node according to certain strategy
The clustered node that a normal clustered node replaces failure is selected, this process is identical as above-mentioned process, and details are not described herein again.
Event notification method provided in this embodiment, cluster host node and other clustered nodes are each responsible for a part of event
The event of theme issues process, and such event notice sending method alleviates the pressure of cluster host node, moreover, ought receive simultaneously
To multiple and different themes when notification event, corresponding clustered node can carry out issuing work to notification event simultaneously,
To improve event notice efficiency.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or
For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct
The unit of separate part description may or may not be physically separated, component shown as a unit can be or
Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root
According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill
Personnel can understand and implement without creative efforts.
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The present invention can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
The above is only a specific embodiment of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (6)
1. a kind of event notification method, which is characterized in that the method is applied in storage system, and the storage system includes extremely
A few clustered node, multiple network equipments and multiple event subscription persons, the event subscription person include client or service
Device;The clustered node is connect with the multiple network equipment, which comprises
The clustered node receive multiple event subscription persons by subscribe to message send to notification event, it is described to notification event
Including theme;
The clustered node is according to described to pair between the theme and event topic of notification event and the address of the network equipment
It should be related to, determine the address of the corresponding destination network device of theme to notification event, the destination network device is institute
One in multiple network equipments is stated, and the destination network device is connect with the multiple event subscription person, the multiple thing
Theme ordered by part subscriber is all the same;
The clustered node is sent to the target network to notification event for described according to the address of the destination network device
Equipment;
The destination network device gives the multiple thing that the destination network device connects to notification event multicast for described
Part subscriber.
2. the method according to claim 1, wherein the method also includes:
If the clustered node judges not including institute in the corresponding relationship between the event topic and the address of the network equipment
State theme, then select the address of other network equipments from the storage system, and establish the theme with it is selected other
Corresponding relationship between the address of the network equipment.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
When the clustered node breaks down, the clustered node is sent to described in the storage system to notification event
Other clustered nodes;
Other clustered nodes according to receive it is described to the address of notification event and event topic and the network equipment it
Between corresponding relationship, determine the address of the corresponding destination network device of theme to notification event.
4. a kind of system for event notice, which is characterized in that the system comprises at least one clustered nodes, multiple networks
Equipment and multiple event subscription persons, the event subscription person include client or server;The clustered node and described more
A network equipment connection;
The clustered node, it is described to logical for receiving multiple event subscription persons by subscribing to that message sends to notification event
County magistrate's part includes theme;And according between the theme to notification event and event topic and the address of the network equipment
Corresponding relationship determines the address of the corresponding destination network device of theme to notification event;And according to the target network
The address of network equipment is sent to the destination network device to notification event for described, wherein the destination network device is described
One in multiple network equipments, and the destination network device is connect with the multiple event subscription person, the multiple event
Theme ordered by subscriber is all the same;
The destination network device, for giving the described more of the destination network device connection to notification event multicast for described
A event subscription person.
5. system according to claim 4, which is characterized in that
The clustered node, if being also used to judge in the corresponding relationship between the event topic and the address of the network equipment not
When comprising the theme, the address of other network equipments is selected from the system, and establish the theme and it is selected its
Corresponding relationship between the address of its network equipment.
6. system according to claim 4 or 5, which is characterized in that
The clustered node is also used to be sent to storage system to notification event for described when the clustered node breaks down
In other clustered nodes;
Other clustered nodes, for according to receiving to notification event and event topic and the network equipment
Corresponding relationship between address determines the address of the corresponding destination network device of theme to notification event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510979999.3A CN105553682B (en) | 2015-12-23 | 2015-12-23 | Event notification method and the system notified for event |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510979999.3A CN105553682B (en) | 2015-12-23 | 2015-12-23 | Event notification method and the system notified for event |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105553682A CN105553682A (en) | 2016-05-04 |
CN105553682B true CN105553682B (en) | 2019-05-24 |
Family
ID=55832624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510979999.3A Active CN105553682B (en) | 2015-12-23 | 2015-12-23 | Event notification method and the system notified for event |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105553682B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672632A (en) * | 2018-12-25 | 2019-04-23 | 上海赛治信息技术有限公司 | FC-AE-ASM Data Communication in Computer Networks method and system |
CN109885414A (en) * | 2019-02-21 | 2019-06-14 | 北京宝兰德软件股份有限公司 | Distributed event notification method and device based on ZooKeeper |
CN110012083B (en) * | 2019-03-26 | 2022-07-01 | 青岛聚好联科技有限公司 | Data transmission method, server and data transmission device |
CN110913020B (en) * | 2019-12-20 | 2022-04-05 | 语联网(武汉)信息技术有限公司 | Data transmission method and device for workgroup |
CN113573299B (en) * | 2020-04-29 | 2022-08-30 | 中国电信股份有限公司 | Subscription data providing/acquiring method, providing/acquiring device and interactive system |
CN111711663A (en) * | 2020-05-26 | 2020-09-25 | 北京金山云网络技术有限公司 | Processing method and device for publishing and subscribing services and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098240A (en) * | 2006-06-28 | 2008-01-02 | 北京佳讯飞鸿电气有限责任公司 | Method and system for implementing case subscription in complex network environment |
CN102664947A (en) * | 2012-04-18 | 2012-09-12 | 迈普通信技术股份有限公司 | Notification distribution method for distributed system |
CN103548315A (en) * | 2012-05-15 | 2014-01-29 | 西门子企业通讯有限责任两合公司 | Method and apparatus for high performance low latency real time notification delivery |
CN104506578A (en) * | 2014-12-03 | 2015-04-08 | 郑州正信科技发展股份有限公司 | Publishing/subscription network subscription information maintenance method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848236A (en) * | 2010-05-06 | 2010-09-29 | 北京邮电大学 | Real-time data distribution system with distributed network architecture and working method thereof |
CN102377686B (en) * | 2010-08-10 | 2015-07-01 | 阿里巴巴集团控股有限公司 | Message subscription system, method and device |
-
2015
- 2015-12-23 CN CN201510979999.3A patent/CN105553682B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098240A (en) * | 2006-06-28 | 2008-01-02 | 北京佳讯飞鸿电气有限责任公司 | Method and system for implementing case subscription in complex network environment |
CN102664947A (en) * | 2012-04-18 | 2012-09-12 | 迈普通信技术股份有限公司 | Notification distribution method for distributed system |
CN103548315A (en) * | 2012-05-15 | 2014-01-29 | 西门子企业通讯有限责任两合公司 | Method and apparatus for high performance low latency real time notification delivery |
CN104506578A (en) * | 2014-12-03 | 2015-04-08 | 郑州正信科技发展股份有限公司 | Publishing/subscription network subscription information maintenance method and device |
Non-Patent Citations (1)
Title |
---|
高可用性负载均衡信息发布平台的设计;吴德军;《计算机工程》;20060228;第32卷(第4期);第125-127页 |
Also Published As
Publication number | Publication date |
---|---|
CN105553682A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105553682B (en) | Event notification method and the system notified for event | |
TWI337715B (en) | Method and system for complex event processing | |
CN104935672B (en) | Load balancing service high availability implementation method and equipment | |
CN101821993B (en) | Method and system for handling failover | |
CN103888277B (en) | A kind of gateway disaster-tolerant backup method, device and system | |
US20100077250A1 (en) | Virtualization based high availability cluster system and method for managing failure in virtualization based high availability cluster system | |
CN104811371B (en) | A kind of brand-new instantaneous communication system | |
CN108712501A (en) | Sending method, device, computing device and the storage medium of information | |
CN103841206B (en) | A kind of subscription and the method for issuing subject message | |
CN106657314A (en) | Cross-data center data synchronization system and method | |
CN102437933A (en) | Fault tolerance system and method of server | |
CN110704250B (en) | Hot backup device of distributed system | |
CN104811476A (en) | Highly-available disposition method facing application service | |
CN107682411A (en) | A kind of extensive SDN controllers cluster and network system | |
CN110677282B (en) | Hot backup method of distributed system and distributed system | |
CN110262909A (en) | RabbitMQ multi-zone supervision and message dilivery method, system | |
CN102984174B (en) | Reliability guarantee method and system in a kind of distribution subscription system | |
CN105490847B (en) | A kind of private cloud storage system interior joint failure real-time detection and processing method | |
EP2485438B1 (en) | Protection method for subscriber access network and equipment thereof | |
JP2007200086A (en) | Data duplication system and data duplication method | |
CN101197779A (en) | Method, device and system for improving address analysis protocol proxy package efficiency | |
CN102591714B (en) | Process calling method, system and application server | |
CN107438098A (en) | A kind of dynamic content dispensing method and its system | |
WO2019201111A1 (en) | Information processing method, apparatus and device, and computer-readable storage medium | |
JP2007200085A (en) | Data duplication system and data duplication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |