A method and device for obtaining cached data

A technology for caching data and obtaining devices, which is applied in the computer field and can solve problems such as service anomalies and achieve the effect of relieving pressure
CN105353976BActive Publication Date: 2018-09-07BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Publication Date
2018-09-07

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention provides a cache data acquisition method and apparatus. The method comprises: according to a data request of an application server, acquiring a data signature corresponding to the data request from a data signature cache server, and if the data signature is acquired from the data signature cache server, acquiring cache data corresponding to the data signature from a corresponding local disk; if the data signature is not acquired from the data signature cache server, determining that cache data acquisition fails; and if the data signature cache server goes down, acquiring cache data corresponding to the data request from a corresponding data content cache server. Compared with the prior art, according to the cache data acquisition method and apparatus provided by the present invention, the data signature cache server is accessed to acquire the data signature, and the cache data is acquired from the local disk, so as to avoid initiating a request to the data content cache server; and when the data signature cache server goes down, the cache data is acquired from the data content cache server, so that pressure of the data content cache server is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of computer technology, in particular to a method and device for acquiring cached data. Background technique

[0002] The cache system stores data information frequently accessed by users, which helps users obtain data nearby when initiating data access, and achieves the effect of access acceleration. However, the existing technologies usually only have content caching, which needs to transfer a large amount of data. Moreover, when the cache system crashes, different processing schemes will bring different effects to the system.

[0003] At present, the two commonly used solutions for dealing with cache system crashes are:

[0004] 1) When the cache system crashes and there is no response, directly transparently transmit the request to the backend real data source. This solution caused the back-end data source to crash instantaneously, causing the system to avalanche and unable to provide services, which in...

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