Method and storage medium for updating client routing
A client and routing technology, applied in transmission systems, electrical components, etc., can solve problems such as insufficient time, untimely update of routing lists, and long links taking a long time, reducing the number of retries and improving 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 routing, including:
[0060] S1: When the client application is started 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 routing address 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 the routing version number, when requesting to establish a long link with one of the access services for the first time according to the routing address list, it will also bring its own version number information to the server in the request.
[0063] S4: After the server receives the above request and completes the relevant business logic, it adds a r...
Embodiment 2
[0076] This embodiment provides a specific application scenario for Embodiment 1:
[0077] When the client application is started for the first time, it will access the routing cluster interface in advance to obtain the routing address list and its version number, and at the same time, cache the 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 returned routing address lists: A, B, and C are three routing addresses, and the addresses include the domain name and port number. At this time, the routing version number is 1, and the version numbers of the server and the client are the same.
[0080] After the client obtains the routing address list, it will randomly obtain one of the routing addresses to establish a push long link. Generally, in the process of requesting the establishment of a long link, the online flag of the device will be set in...
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, the program can implement the above-mentioned Embodiment 1 or Embodiment 2. The steps contained in a method of updating client-side routes. The content of the specific steps will not be repeated here. For details, please refer to the description of the first embodiment or the second embodiment.
[0088] To sum up, with the method and storage medium for updating client routing provided by the present invention, the client only needs to obtain the routing address list from the routing cluster once, and can establish a long link in a timely manner based on the version number in each subsequent request. Update the routing address list; thereby greatly reducing the number of retries and improving the connection efficiency; further, it basically does not have any impact on the long link...
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