Performance in web applications is a key aspect of user experience and system scalability. Among the different techniques used to improve web application performance, caching has been widely used. While caching has been widely explored in web performance optimization literature, there is a lack of experimental work that explores the effect of simple inmemory caching in small-scale web applications. This paper fills this research gap by experimentally comparing the performance of two server-side web application configurations: one without caching and another with in-memory caching and a fixed time-tolive. The performance evaluation was conducted using a lightweight web server framework, and response times were measured using repeated HTTP requests under identical environmental conditions. The results show a significant reduction in response time for cached requests, and the findings of this paper provide valuable insights into the effectiveness of simple server-side caching in improving web application performance making it suitable for educational environments and small-scale web applications where simplicity and reproducibility are critical.
翻译:Web应用程序的性能是用户体验和系统可扩展性的关键因素。在用于提升Web应用性能的各种技术中,缓存已被广泛采用。尽管缓存技术在Web性能优化文献中已有广泛探讨,但针对简单内存缓存在小规模Web应用中的效果,目前仍缺乏实验性研究。本文通过实验比较两种服务器端Web应用配置的性能来填补这一研究空白:一种无缓存配置,另一种采用内存缓存并设置固定生存时间。性能评估使用轻量级Web服务器框架进行,在相同环境条件下通过重复HTTP请求测量响应时间。结果表明,缓存请求的响应时间显著降低。本文的研究结果为简单服务器端缓存在提升Web应用性能方面的有效性提供了重要见解,使其适用于教育环境和小规模Web应用场景,其中简洁性与可复现性至关重要。