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.

Active Publication Date: 2022-06-07
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, there will be a problem of not being timely enough to obtain the latest routing address list of the server by periodically refreshing the routing list on the client side
There are also some special processing methods on the client side. When the routing addresses in the local cache fail to be accessed or cannot be accessed, the latest routing will be obtained again. In this way, it will take a long time to establish a long link
[0004] Therefore, it is necessary to solve the above-mentioned problem that the routing list of the client is not updated in time

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 and storage medium for updating client routing
  • Method and storage medium for updating client routing
  • Method and storage medium for updating client routing

Examples

Experimental program
Comparison scheme
Effect test

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...

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 present invention provides a method and a storage medium for updating client routing. The method includes: before the client requests access for the first time, obtain a routing address list and its version number by accessing the routing cluster and store it locally; When requesting to establish a long link with an access service, send its own version number to the server; the server obtains the version number corresponding to the current routing address list from the redis cache cluster, and judges whether it is consistent with the version number sent by the client ; If inconsistent, return the current routing address list to the client. The invention can ensure the timeliness of updating the client's local routing address list, greatly reduce the number of retries, and improve the connection efficiency; at the same time, it basically does not bring any influence on the long link being established.

Description

technical field [0001] The invention relates to the field of message push, in particular to a method and a storage medium for updating client routing. Background technique [0002] With the booming development of the mobile Internet today, most mobile APPs provide message push functions, such as hot news recommendation on news clients, chat message reminders on IM tools, e-commerce product promotion information, corporate application notifications and approval processes, etc. Pushing plays an important role in increasing product activity, increasing the utilization rate of functional modules, increasing user stickiness, and increasing user retention rate. [0003] Most push applications have a routing cluster, and the client accesses the interface of the routing cluster in advance to obtain the routing list; after that, selects one of the routing addresses to connect to an access service in the access cluster to establish a long link; After the long link is established, the...

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/141H04L67/55H04L45/74
CPCH04L67/141H04L45/742H04L67/55
Inventor 刘德建林伟郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products