Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Asynchronous call implementation method and device, server and server cluster

A server cluster and asynchronous call technology, applied in the field of communication, can solve problems affecting API response time and so on

Active Publication Date: 2020-07-07
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventors found that by using the for loop on the server side to make RPC calls serially, the response time of the API is linearly related to the size of the cluster to a certain extent. For a large-scale distributed system cluster, this serial RPC call The method seriously affects the response time of the API. For example, if there are 100 RPC requests, the time spent on each RPC request is 0.01s, and the time spent on the RPC request is 1s.

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 implementation method and device, server and server cluster
  • Asynchronous call implementation method and device, server and server cluster
  • Asynchronous call implementation method and device, server and server cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0071] In a large-scale distributed system, there are often many nodes, and there are various RPC calls between these nodes. In particular, for centralized service nodes, it is necessary to call a large number of remote services through RPC to achieve specific functions.

[0072] figure 1 It is an architecture diagram of a distributed system RPC calling system in the prior art.

[0073] Such as figure 1 As shown, after the load balance load balance receives...

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 implementation method and device, a server and a server cluster. The asynchronous call implementation method is applied to the server cluster, the server cluster comprises a plurality of servers, and the plurality of servers can access a preset shared database; and a main process and a sub-thread run in the server. The method comprisesthat: the main process judges whether a target identification field exists in a shared database or not based on a resource operation request, wherein the resource operation request is used for requesting to perform a specified operation on a specified resource, and the target identification field is a field conflicting with the specified operation of the specified resource; if the target identification field does not exist, the main process generates at least one remote procedure call protocol RPC request based on the resource operation request, and adds the RPC request into a local memory queue; and the sub-thread obtains the RPC request from the local memory queue and sends the RPC request. According to the embodiment of the invention, the RPC calling efficiency is improved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method, device, server and server cluster for realizing asynchronous calling. Background technique [0002] In a large-scale distributed system, there are often many nodes, and various RPC (Remote Procedure Call Protocol, remote procedure call protocol) calls are made between these nodes. In particular, for centralized service nodes, it is necessary to call a large number of remote services through RPC to achieve specific functions. For example, the relationship between neutron-server (sub-server) and agent (agent): neutron-server exposes rest API (Application Programming Interface, application programming interface), so that third-party services call rest API, and neutron-server sends RPC requests to the associated In neutron-agent, neutron-agent implements the functions corresponding to third-party services. [0003] Specifically, the process of the computing service...

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/06H04L29/08
CPCH04L67/133H04L67/60
Inventor 胡伟
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products