arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.03792cs.SE
收藏

微服务中架构软件性能设计模式的实验评估

Experimental evaluation of architectural software performance design patterns in microservices

Willem Meijer, Catia Trubiani, Aldeida Aleti

AI总结:

本文首次通过真实云环境实验评估微服务中三种架构设计模式对性能的影响,验证了基于模型的预测与实测结果基本一致,并强调理论模型需结合经验数据。

摘要:

微服务架构和设计模式通过提升灵活性来增强大规模应用的开发。工业实践者认识到应用架构模式的重要性,但他们难以量化这些模式对系统质量需求的影响。我们的研究旨在量化设计模式对系统性能指标(例如服务延迟和资源利用率)的影响,尤其是当这些模式在受异构工作负载影响的真实环境中运行时。我们构建了一个云基础设施,用于托管一个成熟的基准系统作为我们的测试平台,并补充实现了三种设计模式:Gateway Aggregation、Gateway Offloading、Pipe and Filters。我们收集真实的性能测量数据,并将其与我们在先前研究中推导出的基于模型的预测进行比较,从而进一步巩固这些模式的实际影响。我们的结果表明,尽管对我们的基准系统进行参数化存在困难,但基于模型的预测与真实实验基本一致,因为模式的性能行为(例如瓶颈切换)大多得以保留。总之,这是第一项通过实验证明基于微服务的架构模式性能行为的工作。结果突显了评估设计模式性能的复杂性,并强调需要用经验数据来补充理论模型。

英文摘要:

Microservice architectures and design patterns enhance the development of large-scale applications by promoting flexibility. Industrial practitioners perceive the importance of applying architectural patterns but they struggle to quantify their impact on system quality requirements. Our research aims to quantify the effect of design patterns on system performance metrics, e.g., service latency and resource utilization, even more so when the patterns operate in real-world environments subject to heterogeneous workloads. We built a cloud infrastructure to host a well-established benchmark system that represents our test bed, complemented by the implementation of three design patterns: Gateway Aggregation, Gateway Offloading, Pipe and Filters. Real performance measurements are collected and compared with model-based predictions that we derived as part of our previous research, thus further consolidating the actual impact of these patterns. Our results demonstrate that, despite the difficulty to parameterize our benchmark system, model-based predictions are in line with real experimentation, since the performance behaviors of patterns, e.g., bottleneck switches, are mostly preserved. In summary, this is the first work that experimentally demonstrates the performance behavior of microservices-based architectural patterns. Results highlight the complexity of evaluating the performance of design patterns and emphasize the need for complementing theoretical models with empirical data.

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

↑