Data cache implementation method, system and data server

A data server and data caching technology, applied in the field of data processing, can solve the problems of not being able to guarantee data and caching, and achieve the effect of high speed, high efficiency and good synchronization of caching

Active Publication Date: 2019-05-17
新浪技术(中国)有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Embodiments of the present invention provide a data cache implementation method, system, and data server to solve the problem in the prior art that there is no cache that can guarantee data synchronization to different locations, improve the speed and efficiency of data cache, and ensure data cache Synchronization

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
  • Data cache implementation method, system and data server
  • Data cache implementation method, system and data server
  • Data cache implementation method, system and data server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Embodiment 1 of the present invention provides a data cache implementation method, the process of which is as follows figure 1 shown, including the following steps:

[0050] Step S101: Obtain user data submitted by the local area or user data forwarded by data servers in other areas.

[0051] The data server can obtain the user data submitted by the local region and cache it for subsequent use; it can also obtain the user data forwarded by the data server in other regions and cache it for subsequent use.

[0052] Step S102: Add command header information and terminators to user data to obtain cached data. Wherein, the cache data includes command header information, user data and terminator, and the command header information includes a command number indicating an action to be executed.

[0053] After the data server acquires the user data, before caching it, add command header information to the user data to facilitate identification when reading the cached data late...

Embodiment 2

[0074] In the method for implementing data cache provided by Embodiment 2 of the present invention, the principle of realizing large-scale data cache synchronization among various data servers is as follows: figure 2 shown.

[0075] Users in the area to which the first data server belongs submit user data to the first data server, and the write queue (qw) tool in the first data server processes the obtained user data, and the cached data is added to the cache queue in the area .

[0076] The write queue (qw) tool is responsible for collecting the user data sent to it, and confirming to the data submitter that the data has been received in good condition (that is, ok). The Qw tool is used as the CommonGateway Interface (CGI) module of the data server (for example: it can be an apache server or other data servers, where apache originally meant a server full of patches, taken from the pronunciation of a patchy server), and can directly accept Hypertext Transfer Protocol (Hyper...

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 embodiment of the invention provides a data caching implementing method and system and a data server. The method comprises the steps of acquiring user data submitted in a local area or user data transmitted by data servers in other areas; adding command header information and end marks for the user data to obtain cached data, and adding the cached data into a local area cache queue, wherein the cached data comprises the command header information, the user data and the end marks, and the command header information includes a command number for indicating to execute an action; reading the cached data from the local area cache queue, parsing out the command header information and the user data, and according to the included command number, executing the corresponding action on the parsed user data. Data can be guaranteed to be timely and accurately synchronized into server caches at different positions, the data caching speed and efficiency are improved, and synchronism of data caching is ensured.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data cache implementation method, system and data server suitable for large-scale data cache. Background technique [0002] Hypertext Preprocessor (PHP), as a general-purpose open source scripting language, can provide a new interface for accessing the relational database management system—MySQL, which can use SQL language to access the database. [0003] To solve the problem of accessing large-scale data in different locations, in addition to the support of the server, it is also necessary to use various methods to copy the data into multiple copies and cache them on the servers in each computer room. For example, using Redundant Array of Independent Disks (RAID), MySQL synchronization mechanism, Lightweight Directory Access Protocol (Lightweight Directory Access Protocol, LDAP) synchronization mechanism, etc., as well as Google's Google file system (Google File Syste...

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): G06F16/2455
CPCG06F16/24552
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