关于微服务战术和模式在减少能耗上的有效性:一项关于权衡的研究
On the Effectiveness of Microservices Tactics and Patterns to Reduce Energy Consumption: An Experimental Study on Trade-Offs
AI总结:
本文通过实验研究微服务战术和模式在降低能耗方面的有效性,发现部分技术在提升性能的同时牺牲了可维护性,强调了能源效率的重要性。
摘要:
背景:基于微服务的系统已在软件行业中确立。然而,可持续性相关法规和能源密集型软件的日益增长的成本增加了这些系统能源效率的重要性。虽然存在一些关于架构战术和模式的提案,但它们的有效性以及对其他质量属性(QAs)的潜在权衡仍不清楚。目标:因此,我们旨在研究微服务战术和模式减少能耗的有效性,以及与性能和可维护性的潜在权衡。方法:使用开源的Online Boutique系统,我们进行了一个受控实验,测试了三种战术和三种模式,并分析了每种技术与基线的比较影响。我们还测试了三种模拟请求负载水平(低、中、高)。结果:请求负载调节了减少能耗的有效性。所有技术(战术和模式)至少在一种负载水平上减少了能耗,最高可达5.6%。对于性能,这些技术可能会通过增加响应时间最多25.9%而产生负面影响,而一些技术则减少了响应时间最多72.5%。两种技术提高了吞吐量,分别增加了1.9%和34.0%。对于可维护性,三种技术有负面影响,一种有正面影响,两种无影响。结论:某些技术在减少能耗的同时提高了性能。然而,这些技术通常涉及可维护性的权衡,例如通过更多的代码重复和模块耦合。总体而言,所有技术在高负载下显著减少了能耗,但大多数技术牺牲了其他QAs之一。这突显了真正的挑战不仅仅是减少微服务的能耗,而是实现能源效率。
英文摘要:
Context: Microservice-based systems have established themselves in the software industry. However, sustainability-related legislation and the growing costs of energy-hungry software increase the importance of energy efficiency for these systems. While some proposals for architectural tactics and patterns exist, their effectiveness as well as potential trade-offs on other quality attributes (QAs) remain unclear. Goal: We therefore aim to study the effectiveness of microservices tactics and patterns to reduce energy consumption, as well as potential trade-offs with performance and maintainability. Method: Using the open-source Online Boutique system, we conducted a controlled experiment with three tactics and three patterns, and analyzed the impact of each technique compared to a baseline. We also tested with three levels of simulated request loads (low, medium, high). Results: Request load moderated the effectiveness of reducing energy consumption. All techniques (tactics and patterns) reduced the energy consumption for at least one load level, up to 5.6%. For performance, the techniques could negatively impact response time by increasing it by up to 25.9%, while some also decreased it by up to 72.5%. Two techniques increased the throughput, by 1.9% and 34.0%. For maintainability, three techniques had a negative, one a positive, and two no impact. Conclusion: Some techniques reduced energy consumption while also improving performance. However, these techniques usually involved a trade-off in maintainability, e.g., via more code duplication and module coupling. Overall, all techniques significantly reduced energy consumption at higher loads, but most of them sacrificed one of the other QAs. This highlights that the real challenge is not simply reducing energy consumption of microservices, but to achieve energy efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。