Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-05-01
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 4 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
  • Client routing updating method and storage medium
  • Client routing updating method and storage medium
  • Client routing updating method and storage medium

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

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 provides a client routing updating method and a storage medium, and the method comprises the steps: a client obtains a routing address list and a version number of the routing address list through accessing a routing cluster before a client requests to access for the first time, and stores the routing address list and the version number locally; when the client requests to establisha long link with an access service according to the routing address list, the version number of the client is uploaded to the server; the server obtains a version number corresponding to the current routing address list from the redis cache cluster, and judges whether the version number is consistent with the version number sent by the client or not; and if not, the current routing address list isreturned to the client. According to the invention, the timeliness of updating the local routing address list of the client can be ensured, the retry frequency is greatly reduced, and the connectionefficiency is improved; at the same time, there is substantially no impact 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 routes. Background technique [0002] Today, with the booming mobile Internet, most mobile APPs provide message push functions, such as hot news recommendations in news clients, chat message reminders in IM tools, e-commerce product promotion information, enterprise 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 improving user retention. [0003] There is a routing cluster in most push applications, and the client accesses the interface of the routing cluster in advance to obtain the routing list; after that, select one of the routing addresses and connect to an access service in the access cluster to establish a long link; After the long link is established, the server and 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 Applications(China)
IPC IPC(8): H04L29/08H04L12/747
CPCH04L67/141H04L45/742H04L67/55
Inventor 刘德建林伟郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products