Method for carrying out service communication among nodes on cloud platform

An inter-node, cloud platform technology, applied in the field of distributed services, to achieve the effect of saving computing time

Inactive Publication Date: 2013-06-12
OPZOON TECH
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this communication method is not conducive to realizing that a message can be received by services on multiple nodes at the same time

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 for carrying out service communication among nodes on cloud platform
  • Method for carrying out service communication among nodes on cloud platform
  • Method for carrying out service communication among nodes on cloud platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0033] like figure 1 As shown, the method for performing service communication between nodes on the cloud platform proposed by the present invention includes the following steps:

[0034] S1. Using zookeeper to establish a znode path between the task initiator and the task receiver, wherein there are multiple task receivers;

[0035] S2. The task initiator writes the task message into the znode path;

[0036] S3. The task receiver reads the task message from the znode path.

[0037] Before step S3, the method further includes: the task receiver keeps monitoring the znode path.

[0038] Also include steps after step S3:

[0039] S4. After the task receiving end executes the corresponding task according to the task message, write the task feedback message into the znode path;

[0040] S5. The task init...

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 invention relates to the technical field of distributed service, and particularly discloses a method for carrying out service communication among nodes on a cloud platform. The method comprises the following steps: (S1) a znode path is established between a task initiating end and each task receiving end by utilizing zookeeper, wherein multiple task receiving ends are arranged; (S2) the task initiating end writes task messages into the znode paths; and (S3) the task receiving ends read the task information from the znode paths. The method has the advantages that by adoption of the technical scheme, the service communication among different nodes in a cluster can be finished, so that different services on more nodes can finish a same task cooperatively.

Description

technical field [0001] The invention relates to the technical field of distributed services, in particular to a method for performing service communication between nodes on a cloud platform. Background technique [0002] With the development of cloud platforms, distributed systems or distributed services have increasingly become the focus of industry research. At present, in the communication between services on different nodes in the cloud platform, the server usually waits for the connection of the client by listening to the TCP / UDP port, and starts sending messages once the connection is established. However, this communication method is not conducive to realizing that a message can be received by services on multiple nodes at the same time. For example, a node a on the cloud platform runs service A; another node b runs service B; and another node c runs service C. Now node a has to complete a task which needs to run services A, B and C at the same time. So, how to mak...

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 Applications(China)
IPC IPC(8): H04L29/08
Inventor 王鹏
Owner OPZOON TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products