数据缓存是提升动态Web应用性能的重要手段,传统数据缓存方案主要进行数据查询缓存,通常需要开发人员对应用程序进行大量修改并负责缓存失效维护,导致缓存方案的部署成本和维护成本过高.提出一种新的基于键值存储结构的数据缓存机制EasyCache ,支持缓存数据的自动加载,兼容常用的标准数据访问接口及SQL语法,并提出一种基于规则的优化模型及数据一致性保障策略,开发人员无需修改应用程序即可完成EasyCache的集成.T PC‐W基准测试结果表明系统性能得到显著提升,在单表数据规模增加以及并发用户规模增加等情况下,系统响应速度可提高10倍,吞吐率提高近1倍.
Data caching is an important technology to promote system performance .However ,most of the existing data caching solutions need application developers to rew rite the application and to take a large effort to manually manage the caching data .All these disadvantages give rise to the cost of cache deployment and management .A new caching mechanism named EasyCache is proposed in this w ork , which aims at integrating with existing applications transparently .EasyCache ,a key/value store ,can scale easily for big data and is compatible with the common data access interfaces and SQL syntax . SQL statements are translated into a sequence of predicts w hich are specifically designed for key/value stores and rule‐based optimization model is proposed simultaneously .EasyCache supports automatic loading of caching data and provides different policies to guarantee data consistency .Developers can easily finish the deployment of EasyCache by replacing the original database driver with EasyCache's driver ,without any modification of existing applications' source codes . The effectiveness of the EasyCache is illustrated via a detailed set of experimentation using the TPC‐W benchmark . The numerical results show that we improve the response speed and throughput by up to 10x and 1x respectively w hen increasing the number of the table data entries or the number of concurrent users .