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

Method, device, server and server cluster for realizing asynchronous call

A server cluster and asynchronous call technology, applied in the field of communication, can solve problems such as affecting API response time, and achieve the effect of avoiding conflicts and improving efficiency

Active Publication Date: 2022-05-06
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
  • Method, device, server and server cluster for realizing asynchronous call
  • Method, device, server and server cluster for realizing asynchronous call
  • Method, device, server and server cluster for realizing asynchronous call

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 present invention provides an asynchronous call implementation method, device, server and server cluster, wherein the asynchronous call implementation method is applied to the server cluster, the server cluster includes multiple servers, and the multiple servers can all access the preset shared database; There are a main process and a sub-thread running in the server. The method includes: the main process judges whether there is a target identification field in the shared database based on the resource operation request; wherein, the resource operation request is used to request a specified operation for a specified resource; The field that conflicts with the specified operation of the resource; if there is no target identification field, the main process generates at least one remote procedure call protocol RPC request based on the resource operation request, and adds the RPC request to the local memory queue; the child thread starts from the local memory queue Get the RPC request and send it. The embodiment of the present invention improves the efficiency of RPC calling.

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/133H04L67/60
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