| 本文已被:浏览 5164次 下载 9098次 |
 码上扫一扫! |
|
|
| 限界上下文视角下的微服务粒度评估 |
|
钟陈星1,2, 李杉杉1,2, 张贺1,2, 章程3
|
|
1.南京大学 软件学院, 江苏 南京 210023;2.计算机软件新技术国家重点实验室(南京大学), 江苏 南京 210023;3.安徽大学 计算机科学与技术学院, 安徽 合肥 230601
|
|
| 摘要: |
| 近年来,DevOps日渐火热,作为支撑技术的微服务架构由于其敏捷性、灵活性和可扩展性已成为软件行业关注的热点.然而,微服务粒度的界定是微服务领域的一项难题,至今仍缺乏行之有效的评估微服务粒度的标准.针对这一问题,结合几种微服务划分原则提出了4项评估指标,用于量化地衡量微服务划分的合理性,并基于此提出了一种基于限界上下文的微服务粒度评估模型.同时,实现了工具原型可自动化地计算评估结果.案例研究部分将模型的评估结果与架构设计人员的心理预期进行比较,结果表明,所提出的评估模型可以较好地评估微服务粒度. |
| 关键词: DevOps 微服务架构 粒度 划分 限界上下文 评估指标 |
| DOI:10.13328/j.cnki.jos.005797 |
| 分类号: |
| 基金项目:国家自然科学基金(61572251);南京大学计算机软件新技术国家重点实验室开放课题(KFKT2017A13) |
|
| Evaluating Granularity of Microservices-oriented System Based on Bounded Context |
|
ZHONG Chen-Xing1,2, LI Shan-Shan1,2, ZHANG He1,2, ZHANG Cheng3
|
|
1.Software Institute, Nanjing University, Nanjing 210023, China;2.State Key Laboratory for Novel Software Technology(Nanjing University), Nanjing 210023, China;3.Computer Science and Technology, Anhui University, Hefei 230601, China
|
| Abstract: |
| 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. |
| Key words: DevOps microservice architecture granularity decomposition bounded context evaluation metric |