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

Asynchronous call processing method and apparatus, and distributed system

A distributed system and asynchronous call technology, applied in the field of communication, can solve the problem of low processing efficiency in distributed systems

Active Publication Date: 2017-02-22
SUZHOU YUDESHUI ELECTRIC TECH CO LTD
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen from the above that in the prior art, when there is a dependency relationship between the calls of one node to other multiple nodes, the multiple calls can only be processed serially, resulting in low processing efficiency of the distributed system

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
  • Asynchronous call processing method and apparatus, and distributed system
  • Asynchronous call processing method and apparatus, and distributed system
  • Asynchronous call processing method and apparatus, and distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] figure 1 For a schematic diagram of the application scenario of the asynchronous calling method provided by the present invention, please refer to figure 1 , including a distributed system 101 and a client 102, wherein the distributed system 101 includes a coordinator 1011 and a plurality of service nodes (respectively marked as 1012-1 to 1012-2). Each service node may provide services to the client 102 independently, or jointly provide services to the client 102 with other service nodes. In this application, when a service node (master node) provides services to the client 102, the service node can call other service nodes (slave nodes) through the coordinator 1011, and the coordinator 1011 caches the processing results , on the one hand, when the call of the master node to the second slave node depends on the call result of the master node to the first slave node, the master node does not need to wait for the call result of the first slave node when calling the secon...

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 an asynchronous call processing method and apparatus, and a distributed system. The method is applied to the distributed system comprising a coordinator and at least two service nodes, the service node requested by a client to provide services is a master node, and the service node called by the master node to accomplish the services is a slave node, and the method comprises the following steps: the coordinator receives an asynchronous call request initiated by the master node to the slave node based on the services requested by the client; the coordinator creates a call record according to the asynchronous call request and calls the slave node to process the asynchronous call request; the coordinator receives a processing result sent by the slave node and records the processing result in the call record; the coordinator receives a processing result acquisition request sent by the service node needing to use the processing result in the services requested by the client; and the coordinator acquires the processing result from the call record, and sends the processing result to the service node needing to use the processing result. The asynchronous call processing method and apparatus is used for improving the processing efficiency of the distributed system.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and in particular to an asynchronous call processing method, device and distributed system. Background technique [0002] With the continuous development of computer technology, distributed systems have been widely used. There are multiple nodes in a distributed system, and nodes with different functions can call each other to complete preset functions. [0003] In the prior art, in order to improve the processing efficiency of the distributed system, multithreading is usually used to implement asynchronous calls between nodes, so that multiple nodes can run in parallel. Specifically, when a node needs to call other multiple nodes, multiple threads can be started at the same time to respectively call other multiple nodes. However, when there is a dependency relationship between the calls of one node to other multiple nodes, the multiple threads can only perform s...

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
IPC IPC(8): H04L29/08
CPCH04L67/10H04L67/51H04L67/60
Inventor 李晓强
Owner SUZHOU YUDESHUI ELECTRIC TECH CO LTD