Interface cache management method for application program, application server and storage medium

A technology of application program interface and application server, which is applied in the field of application program interface cache management, application server and storage media, can solve the problems of affecting terminal power consumption, slow response speed, high cost, etc., to improve application experience, increase speed, reduce The effect of power consumption

Active Publication Date: 2018-07-13
好活(昆山)网络科技有限公司
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose an application program interface cache management method, application server and storage me

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
  • Interface cache management method for application program, application server and storage medium
  • Interface cache management method for application program, application server and storage medium
  • Interface cache management method for application program, application server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0091] First of all, the present invention proposes an application program interface cache management method, the application program interface cache management method is applied to image 3 An application server 200 is shown. In this embodiment In this embodiment, according to different requirements, Figure 4 The execution order of the steps in the flow chart shown can be changed, and some steps can be omitted. The application program interface cache management method includes the following steps:

[0092] Step S401, receiving the interface call request sent by each terminal in real time;

[0093] Step S402, counting all interface call requests received within a preset period of time to determine the target interface;

[0094] Specifically, in this embodiment, the terminal mainly refers to the above-mentioned Figure 1-3 terminal as shown. When an application program on each terminal needs to call an interface, the terminal will send an interface call request to the corr...

Embodiment 2

[0125] In addition, the present invention provides an API cache management program 10 .

[0126] Such as Figure 9 Shown is a schematic diagram of a hardware structure diagram of an optional application server in various embodiments of the present invention. Application server 200 includes processing 210 , memory 211 and communication bus 212 . The communication bus 212 is used to realize connection and communication between the processor 210 and the memory 211 . Such as Figure 10 As shown, it is a schematic diagram of functional modules of the API cache management program 10 provided by the second embodiment of the present invention. In this embodiment, the API cache management program 10 can be divided into one or more modules, and the one or more modules are stored in the memory of the application server 200, and are composed of one or more executed by a processor to complete the present invention. For example, in Figure 10 In the above, the API cache management pro...

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 discloses an interface cache management method for an application program, an application server and a computer readable storage medium, belonging to the technical field of communication. The method includes the steps of: receiving interface call requests sent by each terminal in real time; counting all the interface call requests received in a preset time period to determine a target interface; acquiring the record of all the interface call requests of the target interface in the preset time period to determine a target router; and sending cached data containing a return value of the target interface to the target router for caching by the target router. Compared with the prior art, by storing the return value of the part of the interfaces that are frequently called to the router, the invention ensures that the terminal can directly obtain the interface return value through the router when calling the part of the interfaces and reduces the communication links through which the interface call requests need to pass, thereby improving the interface call speed, reducing the power consumption of the terminal, improving the user experience, and reducing the cache cost on the server side.

Description

technical field [0001] The present invention relates to the technical field of terminals, in particular to an application program interface cache management method, an application server and a storage medium. Background technique [0002] When the application starts, multiple interfaces are called to load resources. Specifically, multiple interfaces initiate HTTP requests to the application server respectively, and then receive resources returned by the server. With the development of the mobile Internet, there are more and more terminals, and each application program (client) on the terminal requests more and more data from the application server. In order to improve the running speed of the application, the cache service required by the application server is also getting larger and larger. However, in the process of the client requesting the server interface, there are still many links for communication, and the efficiency is not high enough. The problems existing in th...

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
IPC IPC(8): H04L12/747H04L29/08
CPCH04L45/742H04L67/1014H04L67/34H04L67/568H04L67/63Y02D30/50
Inventor 倪秉炬
Owner 好活(昆山)网络科技有限公司
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