arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.02384cs.DB
收藏

Web应用中透明缓存失效的案例研究

The Case of Transparent Cache Invalidation in Web Applications

Yunhong Ji, Xuan Zhou, Yongluan Zhou, Ke Wang

AI总结:

针对Web应用手动维护应用级缓存数据新鲜度难度大的问题,提出通过修改DBMS、增设缓存失效索引实现透明精确缓存失效的设计及两种方案,实验验证其有效且具成本效益。

摘要:

应用级缓存被Web应用广泛采用,以最大限度缩短用户请求的响应时间,同时减轻数据库服务器等系统后端的负担。在实际实践中,开发人员必须手动维护应用级缓存的数据新鲜度。随着如今Web应用的复杂度不断提升,开发人员理解、推导和实现缓存失效方法的难度也越来越大。此外,根据我们对开源Web应用项目和工程师的调研,在应用层将数据库更新与缓存条目对应起来确实颇具挑战。因此,我们提出了一种设计,以透明且精确的方式处理数据有效性,无需开发人员进行任何干预。其核心思路是修改DBMS(数据库管理系统)以提供缓存管理所需的必要信息,并为缓存增设失效索引,从而自动且高效地识别并使过期数据失效。基于该设计,我们进一步提供了两种具体方案。我们的初步实验表明,我们的方案能够有效实现透明缓存失效,同时保持成本效益。

英文摘要:

Application-level caches are widely adopted by web applications to minimize the response time of user requests as well as to reduce the burden on the system backend, such as the database servers. In the state of practice, developers have to take care of the data freshness of application-level caches manually. Given the growing complexities of today's web applications, it becomes increasingly challenging for developers to understand, reason about, and implement cache invalidation methods. Furthermore, according to our survey of open-source web application projects and engineers, it is indeed challenging to map database updates with cache entries at the application level. Therefore, we propose a design to handle data validity in a transparent and precise manner, without requiring any intervention from developers. Its main idea is to modify the DBMS to provide necessary information for cache management and enhance the cache with an invalidation index to identify and invalidate outdated data automatically and efficiently. Based on the design, we further provide two specific solutions. Our preliminary experiments indicate that our solutions could effectively achieve transparent cache invalidation while maintaining cost-effectiveness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑