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.
翻译:随着Web服务、容器和云计算技术成熟,传统系统中的大型服务(例如机器学习和人工智能的计算服务)正在逐渐被拆分成多个微服务,以增加服务的重用性和灵活性。因此,本研究提出了一种基于排队模型的效率分析框架,用于分析将传统大型服务拆分成n个微服务后的效率差异。为了进行概括,本研究考虑了不同的服务时间分布(例如服务时间的指数分布和固定服务时间),并通过排队模型(即M/M/1排队模型和M/D/1排队模型)探讨最坏和最好情况下的系统效率。在每个实验中,均表明原始大型服务所需的总时间高于将其拆分成多个微服务所需的时间,因此将其拆分成多个微服务可以提高系统效率。还可以观察到,在最佳情况下,随着到达率的增加,改进效果变得更加显著。然而,在最坏情况下,只实现了轻微的改进。本研究发现,将其拆分成多个微服务可以有效提高系统效率,并证明当大型服务的计算时间在多个微服务之间均匀分布时,可以实现最佳改进效果。因此,本研究的发现可用作未来微服务架构开发的参考指南。