Unlock instant, AI-driven research and patent intelligence for your innovation.

Communication method, device, electronic equipment and storage medium based on distributed system

A distributed system and communication method technology, applied in the field of devices, communication methods based on distributed systems, electronic equipment and storage media, can solve problems such as high risk, difficult synchronization, high maintenance cost of configuration files, etc.

Active Publication Date: 2022-02-22
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the IP address and port number of each node are stored in a local configuration file, the maintenance cost of the configuration file is relatively high, and synchronization is difficult; if the IP address and port number of each node are stored in a centralized server, There is a single point of failure in this way, and the risk is greater

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
  • Communication method, device, electronic equipment and storage medium based on distributed system
  • Communication method, device, electronic equipment and storage medium based on distributed system
  • Communication method, device, electronic equipment and storage medium based on distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] figure 1 It is a schematic flowchart of a communication method based on a distributed system provided in Embodiment 1 of the present invention. This method can be executed by a communication device or electronic device based on a distributed system. The device or electronic device can be implemented by software and / or hardware. Realized, this device or electronic equipment can be integrated in any intelligent equipment with network communication function. Such as figure 1 As shown, the communication method based on the distributed system may include the following steps:

[0053] S101. Any current node in the distributed system receives a topology message broadcast by other nodes; wherein, the topology message includes at least a message subject of a service message to be sent and a message subject of a subscribed service message.

[0054] In a specific embodiment of the present invention, any current node in the distributed system can receive topology messages broadca...

Embodiment 2

[0062] figure 2 It is a schematic flowchart of a communication method based on a distributed system provided by Embodiment 2 of the present invention. Such as figure 2 As shown, the communication method based on the distributed system may include the following steps:

[0063] S201. Any current node in the distributed system receives a topology message broadcast by other nodes; wherein, the topology message includes at least a message subject of a service message to be sent and a message subject of a subscribed service message.

[0064]In a specific embodiment of the present invention, any current node in the distributed system can receive topology messages broadcast by other nodes, and at the same time, any current node in the distributed system broadcasts topology messages to other nodes; wherein, topology The message at least includes the message subject of the service message to be sent and the message subject of the subscribed service message. Specifically, it is assu...

Embodiment 3

[0077] image 3 A schematic structural diagram of a first communication device based on a distributed system provided by Embodiment 3 of the present invention. The distributed system includes at least two hosts, and each host has multiple nodes, such as image 3 As shown, the communication device based on the distributed system described in the embodiment of the present invention may include: a communication module 301 and a determination module 302; wherein,

[0078] The communication module 301 is configured to receive topology messages broadcast by other nodes; wherein, the topology message includes at least the message subject of the service message to be sent and the message subject of the subscribed service message;

[0079] The determining module 302 is configured to determine at least one target node from other nodes according to the topology message; wherein, the message subject of the service message to be sent by the target node is the same as the message of the se...

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 discloses a communication method, device, electronic equipment and storage medium based on a distributed system. The distributed system includes at least two hosts, and each host has multiple nodes. The method includes: any current node in the distributed system receives topology messages broadcast by other nodes; wherein, the topology message includes at least the service to be sent The message topic of the message and the message topic of the subscribed business message; the current node determines at least one target node from other nodes according to the topology message; wherein, the message topic of the business message to be sent by the target node is the same as that of the business message subscribed by the current node The message topic is the same, and / or the message topic of the business message subscribed by the target node is the same as the message topic of the business message to be sent by the current node; based on the message topic, the current node sends a business message to each target node and / or receives from each target node business news. Communication costs can be reduced and communication risks avoided.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and in particular, to a communication method, device, electronic device, and storage medium based on a distributed system. Background technique [0002] A distributed system is a system composed of a group of computer nodes that communicate through a network and coordinate their work to complete a common task. [0003] In existing communication methods based on distributed systems, if one end node initiates a connection to another end node, the node that initiates the connection needs to know the IP address and port number of the connected node. Generally, the IP addresses and port numbers of each node are stored in a local configuration file, or in a centralized server. Specifically, if one end node initiates a connection to the other end node, the node initiating the connection can look up the IP address and port number of the connected node in the local configu...

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 & Authority Patents(China)
IPC IPC(8): H04L67/51H04L41/12H04L12/18
CPCH04L12/18H04L41/12H04L67/51
Inventor 李科磊陈卓党跃东何玮鲍万宇倪忠俊
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD