Method and system for publishing and subscribing messages in wide area network based on gossip protocol
A wide area network and message technology, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve problems such as low reliability, low system writing efficiency, and inability of slave nodes to process write requests, etc., to improve scalability , Improving writing efficiency and eliminating single point failure problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Such as figure 1 As shown, the present embodiment provides a method for publishing a WAN message based on the gossip protocol, and the method includes steps:
[0035] Step 11, receiving the message published by the client to the topic;
[0036] Step 12, synchronizing the message to other communication stations subscribing to the topic;
[0037] Step 13. Synchronize the message in the topic in the communication station subscribed to the topic. During the synchronization process, the following conditions are met: for the first message published to the local communication station and the synchronization from the remote communication station to the local communication station The sequence of the second message, the first message and the second message is consistent with the time sequence when the messages are uploaded to the communication station.
[0038] First, the symbol definitions to be used below are described. Define the message as Among them, p represents the t...
Embodiment 2
[0094] Such as figure 2 As shown, this embodiment also discloses a rumor protocol-based system for releasing messages in a wide area network, the system includes a main part, a management part, a cache part and a client. figure 2 is the overall architecture of the system in this embodiment. Next, each part will be described in detail.
[0095] Clients include user-written applications and system software development kits. The client publishes a message to a certain communication station or subscribes to a message from a certain communication station by calling the interface of the software development kit.
[0096]The main role of the management part is to maintain the membership of nodes and store metadata such as client application names and topics, and provide access to these data to other parts. The membership of the nodes includes the nodes in the system and which node the node belongs to. Properties of the communication station. When each node in the main part star...
Embodiment 3
[0105] This embodiment provides a method for subscribing messages in a wide area network based on the gossip protocol, which is based on the publishing method described in Embodiment 1, and the subscription method includes the steps of: subscribing to a predetermined topic; obtaining the subscribed topic from a communication station , and get messages from that topic.
[0106] For the subscription method in this embodiment, refer to the description of Embodiment 1.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 