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

Active Publication Date: 2016-01-20
新浪技术(中国)有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, since the system based on this model only contains one master node, and the slave nodes cannot handle write requests, there are the following problems: Once the master node fails, there will be a single point of failure problem, and the reliability is not high; when this When this kind of master-slave replication needs to span multiple IDCs (that is, the master node is in one IDC and the slave nodes are in other IDCs), since there can only be one master node, the overall writing efficiency of the system will be very low and the scalability will be poor

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for publishing and subscribing messages in wide area network based on gossip protocol
  • Method and system for publishing and subscribing messages in wide area network based on gossip protocol
  • Method and system for publishing and subscribing messages in wide area network based on gossip protocol

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and a system for releasing and subscribing information in a wide area network based on a gossip protocol. Efficiency of releasing the information in the wide area network and stability of the system can be improved. The releasing method comprises the steps as follows: receiving information released into a theme by a client terminal, and synchronizing the information with other communication stations subscribing the theme; and synchronizing the information in the theme in the communication stations subscribing the theme. According to the method and system provided by the embodiment of the invention, the information is released to the theme, the client terminal obtains the information by subscribing the theme, the information is synchronized between the communication stations subscribing the theme, and at the moment, when one communication station is out of operation, the client terminal can obtain the information in the subscribed theme through other communication stations, so that the information can be obtained without interruption, the single-point fault problem is solved, overall writing efficiency of the system is enhanced, and the expandability is improved.

Description

technical field [0001] The invention relates to a method and system for publishing messages, in particular to a method and system for publishing and subscribing messages in a wide area network based on gossip protocols. The gossip protocol is a protocol for synchronizing network data in a manner similar to gossip spreading among crowds. Background technique [0002] Publish-subscribe technology is a pattern of messaging. Generally speaking, the most basic pattern of message passing is that the sender passes the message directly to the receiver. The publish-subscribe technology does not pass the message directly to the receiver, but divides the message into several categories (these categories are also called topics), and the receiver can obtain the corresponding message of this category by subscribing to the category they are interested in. A typical way to classify messages is that senders publish messages to different topics and receivers subscribe to topics of interest ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityPatents(China)
IPC IPC(8): H04L12/58H04L29/08
Inventor王聃曹恺朱鑫
Owner新浪技术(中国)有限公司