Check patentability & draft patents in minutes with Patsnap Eureka AI!

Request processing method and device in distributed system

A distributed system and request processing technology, applied in the field of distributed computing, can solve the problem of central node request pressure, client concurrent update cache error-prone, etc., to reduce background thread occupation, avoid request failure, and quickly obtain the effect

Active Publication Date: 2022-05-27
ALIBABA GRP HLDG LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides a request processing method and device in a distributed system, to at least solve the problem of the client triggering a large number of requests sent to the central node when the server is found to be abnormal in the related art, which causes the request pressure of the central node and the concurrency of the client. Error-prone technical issues when updating the cache

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
  • Request processing method and device in distributed system
  • Request processing method and device in distributed system
  • Request processing method and device in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] According to an embodiment of the present invention, an embodiment of a method for processing a request in a distributed system is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be implemented in a computer system such as a set of computer-executable instructions. and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

[0037] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. figure 1 A schematic diagram of a network environment of a computer terminal (or mobile device) for implementing a request processing method in a distributed system is shown, such as figure 1 As shown, the network environment includes a client device 11, a central node 12 and a distributed background server 13. Specifically, the...

Embodiment 2

[0102] The present invention will be described below through a more detailed embodiment. In the following embodiment, the client may first send a subscription request to subscribe the central node to update the routing information, and obtain the updated routing table (routetable). ), the routing table may include multiple pieces of routing information, and each piece of routing information includes: an area and a server corresponding to the area. Optionally, the client can obtain the target area before sending the operation request. After sending the operation request, the client can look up the routing table (obtain the server corresponding to the area through the routing information of the routing table) to obtain the corresponding target area. the server (server). If the search succeeds, use the target server determined by the current routing information to initiate an operation request to the target server; if the search fails, a GetRouteTask needs to be constructed to ob...

Embodiment 3

[0124] The present invention will be described below through another apparatus for implementing the request processing method in the above distributed system, Figure 9 is a schematic diagram of a request processing apparatus in an optional distributed system according to Embodiment 3 of the present invention, such as Figure 9 As shown, the device may include: an obtaining unit 91, a searching unit 93, and a sending unit 95, wherein,

[0125] The obtaining unit 91 is configured to obtain an operation request for the target area.

[0126] The search unit 93 is configured to search the pre-cached routing table for the target server corresponding to the target area, and the routing table stores the correspondence between the plurality of areas and the plurality of servers.

[0127] The sending unit 95 is configured to send an operation request to the target server, so that the target server performs corresponding operations according to the operation request.

[0128] In the a...

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 discloses a request processing method and device in a distributed system. The distributed system includes multiple servers, and the multiple servers correspond to multiple slices, wherein the method includes: obtaining an operation request for the target slice; searching for the target server corresponding to the target slice in the routing table, which stores multiple The corresponding relationship between a slice and multiple servers; send an operation request to the target server, so that the target server can perform corresponding operations according to the operation request. The invention solves the technical problems in the related art that when the server is found to be abnormal, the client triggers a large number of requests sent to the central node, which causes the request pressure of the central node and the technical problems that the client is prone to errors when updating the cache concurrently.

Description

technical field [0001] The present invention relates to the technical field of distributed computing, and in particular, to a request processing method and device in a distributed system. Background technique [0002] In the current distributed system of non-relational database, there are three modules: central node, server and client. The central node will save various label information and schedule multiple areas on different servers; the server provides services to different areas according to the tasks issued by the central node; the client accesses the central node to obtain the location information of the corresponding area, and then requests the corresponding area The server completes the read and write. [0003] Usually, the servers corresponding to each area are relatively fixed, but in a distributed system, for dynamic load balancing and abnormal server discovery, area migration will occur, that is, the server corresponding to the area will be changed. Based on t...

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/63H04L67/10H04L45/74H04L45/02
CPCH04L67/10H04L45/742H04L45/02H04L67/63
Inventor 赵立芳
Owner ALIBABA GRP HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More