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

Cached data loading method and apparatus

A technology for caching data and data, which is applied in the field of data processing, and can solve problems such as low cache hit rate of cached data, system avalanche, lack of data caching flexibility, etc., to achieve the effect of improving utilization efficiency and avoiding system avalanche

Active Publication Date: 2016-10-12
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But at the same time, the memory cache technology is also limited by the physical memory size of the system. When the virtual memory function is enabled, if the memory is exhausted, the memory cache technology will store infrequently used data to the disk. This is determined by the memory cache technology. Yes, it is equivalent to the business layer handing over the cache exchange strategy to the memory cache technology, which lacks the flexibility of data caching to a certain extent; if the virtual memory function is disabled, the memory cache technology will use the virtual memory of the operating system, The business performance of websites involving cached data will drop sharply
Memory caching technology can also limit the physical memory that can be used through configuration options. When the upper threshold of memory usage is reached, even if a wrong write command prompt is given (but it will continue to accept self-read commands), if there are a large number of concurrent operations , will directly penetrate the cache to access the data in the data layer, resulting in an avalanche of the system
In addition, in related technologies, the cache hit rate of cached data is not high
[0004] To sum up, the current memory caching technology has the problem of system avalanche caused by a large number of concurrent operations when the cache fails

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
  • Cached data loading method and apparatus
  • Cached data loading method and apparatus
  • Cached data loading method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

application example 1

[0222] Figure 5 It is the method flow chart of application example 1 of the present invention, as Figure 5 shown, including:

[0223] Step 500, scan the service access layer, read the interface with automatic loading information, and determine whether to automatically load data through the automatic loading information; the automatic loading information in this application example may include an automatic loading flag;

[0224] Step 501: Load and cache the data in the database corresponding to the identified interface containing the automatic loading information according to the preset cache parameter information; here, the cached data can be written into the cache center;

[0225] In this application example, the cache parameter information includes: preset data identification information, and / or cache condition information, and / or expiration time; wherein, the data identification information includes: combination according to interface parameters, and / or Interface parame...

application example 2

[0234] This application example first needs to establish a message queue containing the data status information of all cached data; the data status information is collected in advance, including: the previous request time of the cached data, the number of times the cached data is loaded, and each load The time of the cached data, and / or the number of times the cached data is accessed within a preset time period. This application example uses a process to read the first data status information in the message queue as an example to illustrate; Image 6 It is the method flowchart of application example 2 of the present invention, as Image 6 shown, including:

[0235] Step 600, read the first data status information of the current queue from the message queue;

[0236] Step 601. Obtain the previous request time of the cached data from the data status information, and read the current system time;

[0237] It should be noted that information such as the request time and the cur...

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 cached data loading method and apparatus. The method comprises the steps of scanning a service access layer and identifying an interface containing preset automatic loading information; loading data, corresponding to the identified interface containing the automatic loading information, in a database according to preset cache parameter information, and performing caching; and when data of an accessed business is the data corresponding to the interface containing the automatic loading information, reading the cached data to realize business access processing, wherein the cache parameter information includes preset data discrimination identifier information, caching condition information and / or expiration time. According to embodiments of the cached data loading method and apparatus, the data is cached through the automatic loading information and the cache parameter information, so that system avalanche caused by large amounts of concurrent operations during cache failure is avoided; and furthermore, the cached data is sorted and a cache is judged, so that the utilization efficiency of the data in the cache and the reading efficiency of the cached data are improved.

Description

technical field [0001] This article involves but is not limited to data processing technology, especially a method and device for loading cached data. Background technique [0002] With the continuous expansion of the scale of the Internet and the growing number of Internet users, new requirements have been put forward for e-commerce websites. When a website is frequently visited by millions of users, the response speed of the system directly affects the user experience of visiting the website. [0003] One of the key technologies to improve website access speed by using caching technology. On many large websites, Redis has been widely used (Redis is an open-source, log-type, key-value (Key-Value) database written in C language of the American National Standards Institute (ANSI), supports the network, and can be memory-based or persistent. , and provide application programming interface (API) in multiple languages, memcached (Memcached is a high-performance distributed mem...

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): G06F17/30
Inventor 王福财
Owner NUBIA TECHNOLOGY 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