Client routing updating method and storage medium
A client and routing technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of not being timely enough, updating the routing list in a timely manner, and long links taking a long time, reducing the number of retries and improving The effect of connection efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Please refer to figure 2 and image 3 , this embodiment provides a method for updating client routes, including:
[0060] S1: When the client application starts for the first time, it will access the routing cluster interface in advance, obtain the routing address list and its corresponding version number, and cache it in the local cache; the routing address list is the list of routing addresses that the client can connect to gather.
[0061] S2: The server's routing address list and its version number are cached in the redis cache cluster connected to it.
[0062] S3: After the client obtains the routing address list and routing version number, when it first requests to establish a long link with one of the access services based on the routing address list, it will also bring its own version number information to the server in the request.
[0063] S4: After receiving the above request and completing the relevant business logic, the server adds a routing version nu...
Embodiment 2
[0076] This embodiment provides a specific application scenario for Embodiment 1:
[0077] When the client application starts for the first time, it will pre-access the routing cluster interface to obtain the routing address list and its version number, and at the same time, cache this information in the local cache.
[0078] The server routing address list and its version number information are cached in the redis cache cluster.
[0079] Assume that there are three routing address lists returned: three routing addresses A, B, and C, and the addresses include domain names and port numbers. At this time, the routing version number is 1, and the version numbers of the server and client are the same.
[0080] After the client obtains the routing address list, it will randomly obtain one of the routing addresses to push the establishment of the long link. Generally, in the process of requesting to establish a long link, the online flag of the device will be set in the cache, the...
Embodiment 3
[0087] This embodiment corresponds to Embodiment 1 or Embodiment 2, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it can implement the above-mentioned embodiment 1 or Embodiment 2. The steps involved in a method of updating client routes. The specific steps will not be repeated here, please refer to the description of Embodiment 1 or Embodiment 2 for details.
[0088] To sum up, the present invention provides a method and storage medium for updating client routing. The client only needs to obtain the routing address list once from the routing cluster, and then it can timely update the routing address list based on the version number for each subsequent request to establish a long link. Update the routing address list; thereby greatly reducing the number of retries and improving connection efficiency; further, it basically does not have any impact on the long link being established; finally, i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com