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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



