arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.15490cs.SEcs.AI
收藏

微服务效率分析研究

Research on Efficiency Analysis of Microservices

Chunghwa Telecom Co., Ltd.(中华电信股份有限公司)

Abel C. H. Chen

AI总结:

本研究针对传统大型服务拆分为微服务的效率问题,提出基于排队模型的效率分析框架,通过M/M/1和M/D/1模型验证了拆分可提升系统效率,且计算时间均匀分配时效果最佳,为微服务架构发展提供参考。

摘要:

随着Web服务、容器和云计算技术的成熟,传统系统中的大型服务(例如机器学习和人工智能的计算服务)正逐渐被拆分为多个微服务,以提升服务可复用性和灵活性。为此,本研究提出一种基于排队模型的效率分析框架,用于分析将传统大型服务拆分为n个微服务的效率差异。为保证通用性,本研究考虑了不同的服务时间分布(例如服务时间的指数分布和固定服务时间),并通过排队模型(即M/M/1排队模型和M/D/1排队模型)探究了最坏情况与最佳情况场景下的系统效率。各项实验均表明,原有大型服务所需的总时间高于将其拆分为多个微服务所需的总时间,因此拆分为多个微服务可提升系统效率。同时可观察到,在最佳情况场景下,提升效果会随着到达率的增加而愈发显著;但在最坏情况场景下,仅能实现小幅提升。本研究发现,拆分为多个微服务可有效提升系统效率,并证明当大型服务的计算时间均匀分配到多个微服务时,可达到最佳提升效果。因此,本研究的发现可为微服务架构的未来发展提供参考指引。

英文摘要:

With the maturity of web services, containers, and cloud computing technologies, large services in traditional systems (e.g. the computation services of machine learning and artificial intelligence) are gradually being broken down into many microservices to increase service reusability and flexibility. Therefore, this study proposes an efficiency analysis framework based on queuing models to analyze the efficiency difference of breaking down traditional large services into n microservices. For generalization, this study considers different service time distributions (e.g. exponential distribution of service time and fixed service time) and explores the system efficiency in the worst-case and best-case scenarios through queuing models (i.e. M/M/1 queuing model and M/D/1 queuing model). In each experiment, it was shown that the total time required for the original large service was higher than that required for breaking it down into multiple microservices, so breaking it down into multiple microservices can improve system efficiency. It can also be observed that in the best-case scenario, the improvement effect becomes more significant with an increase in arrival rate. However, in the worst-case scenario, only slight improvement was achieved. This study found that breaking down into multiple microservices can effectively improve system efficiency and proved that when the computation time of the large service is evenly distributed among multiple microservices, the best improvement effect can be achieved. Therefore, this study's findings can serve as a reference guide for future development of microservice architecture.

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

↑