Font Size: a A A

Design And Implementation Of Key-value Cache System Based On Memory

Posted on:2019-11-19Degree:MasterType:Thesis
Country:ChinaCandidate:J C LiuFull Text:PDF
GTID:2428330566495793Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the swift growth of the number of Internet users and the flourish of the mobile Internet,due to the slower disk read and write speed,the traditional database products is increasingly inadequate when faced with the high concurrent requests and massive complex data formats,especially the appear of some new business scene such as seckill and panic buying exacerbate the burden of the database in a short time,how to response to the user's request faster and reduce the access pressure of the database server is a problem what developer have to face in the back-end business.According to the high concurrency request instantaneous and long time of mass data query and other application scenarios in back-end business of server,Armory key-value caching system which based on memory is designed and implemented as a buffer layer between the application layer and the data layer in back-end service,for users to query data,if the cache exists directly returns results to user,or go to find in database if not exists in caching system,which can improve the speed and efficiency of query data.Armory caching system can be divided into three parts which include system service module,data persistence module and master-slave replication module according to the actual application requirements: system service module provide some base service such as system initialization,command parsing and execution,periodic tasks and memory space cleaning;data persistence module backup and restore data through write all data in the cache system into a disk file or record all the commands what can cause changes to the cache data into log file;master-slave replication module improve the safety and availability of the data system through multiple server nodes work together.Due to the use of memory as storage medium,the speed of reading and writing at least one order of magnitude higher than the traditional disk,the query speed of the very large amount of data have a greatly improve,and data persistence function also solvesthe problem that data will be lost after powrefailure because memory is a non-volatile storage medium.The Armory cache system solves the performance bottleneck problem caused by the database in the back-end service,significantly shortens the average response time of the user's request and improves the performance of the whole back-end service.
Keywords/Search Tags:Cache system, Key-Value model, Memory storage, Data persistence
PDF Full Text Request
Related items