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

A dynamic resource access acceleration method and device for improving cache hit rate

A cache hit rate and dynamic resource technology, which is applied in the field of dynamic resource access acceleration methods and devices, can solve problems such as overall page transmission delay, and achieve the effects of improving request response speed, cache hit rate, and intelligence

Active Publication Date: 2018-08-17
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the current technology, when multiple users access the same dynamic resource, it is necessary to perform the same processing and saving process for each user, which causes the problem of overall page transmission delay

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
  • A dynamic resource access acceleration method and device for improving cache hit rate
  • A dynamic resource access acceleration method and device for improving cache hit rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The execution subject of this method is a server or a node. The server can be a website server, a CDN content node server, or a server in a cloud computing service platform.

[0040] figure 1 It is a flowchart of a dynamic resource access acceleration method for improving cache hit ratio in Embodiment 1; this method includes:

[0041] Step 101, receiving an application programming interface API request carrying a user ID and a request target for a target website;

[0042] Step 102, generating a mapping request that removes the relevant information of the user identifier according to the API request;

[0043] Step 103, judging that the request result corresponding to the mapping request has been stored and the storage duration of the request result is less than or equal to the preset duration, extracting the stored request result corresponding to the mapping request, and returning the request result to the user identification corresponding User.

[0044] This method ...

Embodiment 2

[0049] figure 2 It is a structural diagram of a dynamic resource access acceleration device for improving the cache hit rate in Embodiment 2. This device is applied to a server or a node. The server can be a website server, a CDN content node server, or a server in a cloud computing service platform. This device include:

[0050] A receiving module, configured to receive an application programming interface API request carrying a user identification and a request target for a target website;

[0051] A generating module, configured to generate a mapping request that removes the relevant information of the user identifier according to the API request;

[0052] A storage judging module, configured to judge whether the request result corresponding to the mapping request has been stored and whether the storage duration of the request result is less than or equal to the preset duration;

[0053] The processing module is used to extract the stored request result corresponding to th...

specific Embodiment

[0064] The server provides a real-time fund price query function for registered users of a certain website, and only stores the fund code and the corresponding price when storing. In the prior art, after receiving an API request sent by a user to query the price of a certain fund during processing, the user ID and fund code are parsed from the API request, and the real-time price of the fund code is inquired to the back-end server, and the The queried real-time price is returned to the user corresponding to the above user ID.

[0065] In this specific embodiment, the fund identifier and the corresponding price requested by the user are cached in real time, the preset duration is set to 1 millisecond, and the price is updated after 1 millisecond. Received an API request from the first user Zhang San, the API request is to request the price of the fund code 300384, and the API request is http: / / www.stock.com / price.php? user=Zhang San&stock= 300384 . Remove the relevant info...

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 a dynamic resource access acceleration method and device for improving the cache hit rate. The method includes: receiving an API request carrying a user ID and a request target for a target website, and generating a correlation method for removing the user ID according to the API request. Information mapping request, judging that the request result corresponding to the mapping request has been stored and the storage duration of the request result is less than or equal to the preset duration, extracting the stored request result corresponding to the mapping request, and returning the request result to the user Identify the corresponding user. The present invention can effectively accelerate the processing of dynamic resource access based on API requests, and is especially suitable for price inquiries of financial products, and can effectively improve the cache hit rate of user API requests. Request response speed. The present invention also adds a recommendation function, which can improve the intelligence of the service and user experience.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a dynamic resource access acceleration method and device for improving cache hit rate. Background technique [0002] The Content Delivery Network (CDN for short) adds a layer of cache between the source server of the content provider and the end user, including one or more content nodes distributed in various regions, so as to provide end users with accurate content faster and less waiting time access. [0003] In the current technology, when multiple users access the same dynamic resource, the same processing and saving process must be performed for each user, which causes the problem of overall page transmission delay. Therefore, there is an urgent need for a method for effectively accelerating dynamic resource access for API requests. Contents of the invention [0004] In order to solve the above technical problems, the present invention provides a dynamic resource ac...

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): H04L29/08
CPCH04L67/568H04L67/62H04L67/60
Inventor 丛磊
Owner GUIZHOU BAISHANCLOUD TECH CO 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