摘要
近年来,DevOps 日渐火热,作为支撑技术的微服务架构由于其敏捷性、灵活性和可扩展性已成为软件行业关注的热点.然而,微服务粒度的界定是微服务领域的一项难题,至今仍缺乏行之有效的评估微服务粒度的标准.针对这一问题,结合几种微服务划分原则提出了 4 项评估指标,用于量化地衡量微服务划分的合理性,并基于此提出了一种基于限界上下文的微服务粒度评估模型.同时,实现了工具原型可自动化地计算评估结果.案例研究部分将模型的评估结果与架构设计人员的心理预期进行比较,结果表明,所提出的评估模型可以较好地评估微服务粒度.
During recent years, DevOps gains its popularity. As the support of DevOps, microservices architecture has become a hot spot of software industry for its agility, flexibility, and scalability. However, finding the adequate granularity of microservices is a big challenge. Microservices architecture still lacks the criteria for evaluating its granularity. To cope with this problem, this paper designs four evaluation metrics based on several principles of best microservices practice to quantitatively measure the rationality of microservice decomposition. Based on that, a granularity evaluation approach of microservices based on bounded context is proposed. By implementing a tool prototype, evaluation results can be automatically calculated. A case study is used to evaluate the decomposition of a microservices-oriented system and compare the results with the architects’ expectations. The results prove that the proposed approach can be applied to evaluate the granularity of microservices-oriented system.
作者
钟陈星
李杉杉
张贺
章程
ZHONG Chen-Xing;LI Shan-Shan;ZHANG He;ZHANG Cheng(Software Institute, Nanjing University, Nanjing 210023, China;State Key Laboratory for Novel Software Technology (Nanjing University), Nanjing 210023, China;Computer Science and Technology, Anhui University, Hefei 230601, China)
出处
《软件学报》
EI
CSCD
北大核心
2019年第10期3227-3241,共15页
Journal of Software
基金
国家自然科学基金(61572251)
南京大学计算机软件新技术国家重点实验室开放课题(KFKT2017A13)~~
关键词
DevOps
微服务架构
粒度
划分
限界上下文
评估指标
DevOps
microservice architecture
granularity
decomposition
bounded context
evaluation metric