Implementation of Energy-efficient Key-Value Persistent Caching System
Luo Ju · Jisuanji gongcheng · 2014
Most of the traditional caching systems are based on memory storage in order to achieve higher performance,and their data persistence is not perfect.So these systems may be limited to memory capacity.Also they may lose all the data and be impossible to restore when systems break down.After analyzing the traditional caching systems,this paper applies the Log Structured Merge-Tree(LSM-Tree)theory and Merge-Dump storage engine to improve their data persistence,and then implements a distributed Key-Value persistent caching system Sorted Set DB(SSDB) by referencing the stand-alone persistent storage system LevelDB of Google.It combines SSDB with advantages of traditional caching systems,consistent Hashing,Bloom filter and so on to optimize its performance.It tests the performance of SSDB,and the results show that because of pure memory storage,SSDB can effectively reduce the cost of data storage,and it has just a slight decrease of 600 Query Per Second(QPS) in reading and writing performance compared with Redis.