Skip to main content
QUICK REVIEW

[论文解读] A curated Dataset of Microservices-Based Systems

Mohammad Imranur, Rahman Rahman|arXiv (Cornell University)|Sep 7, 2019
Software System Performance and ReliabilityComputer Science被引用 26
一句话总结

本文提出一个经过筛选的20个基于开源微服务系统的数据集,这些系统从GitHub手动挑选,旨在支持微服务架构模式及服务间依赖关系的研究。作者开发了MicroDepGraph工具,通过分析Docker配置和Spring Boot注解来提取API调用依赖关系,为每个项目生成结构化的GraphML和SVG文件,从而实现对多样化微服务系统中服务交互的可复现分析。

ABSTRACT

Microservice architecture is the mainstream to fuel cloud-native systems with small service sets developed and deployed independently. The independent nature of this modular architecture also leads to challenges and gaps practitioners did not face in system monoliths. One of the major challenges with decentralization and its independent microservices that are managed by separate teams is that the evolving system architecture easily deviates far from the original plans, and it becomes difficult to maintain. Literature often refers to this process as system architecture degradation. Especially in the context of microservices, available tools are limited. This article challenges the audience on how static analysis could contribute to microservice system development and management, particularly managing architectural degradation. It elaborates on challenges and needed changes in the traditional code analysis to better fit these systems. Consequently, it discusses implications for practitioners once robust static analysis tools become available.

研究动机与目标

  • 为研究和教学解决公开可用、经筛选的开源微服务项目数据集匮乏的问题。
  • 实现对真实世界系统中微服务架构模式及服务间依赖关系的系统性分析。
  • 提供一个可复现、工具支持的数据集,同时捕捉代码规模(通过SLOCcount)和服务交互图(通过MicroDepGraph)。
  • 支持未来在微服务架构领域的研究,包括模式检测、质量度量和异常识别。

提出的方法

  • 使用针对Java项目中包含'Dockerfile'且关键词为'micro-service'、'microservice'或'micro-service'的GitHub搜索查询,筛选出20个开源微服务项目。
  • 手动验证每个项目,排除库、框架和非微服务系统,确保架构保真度。
  • 使用SLOCcount提取每个项目的代码行数(KLOC),用于规模表征。
  • 开发MicroDepGraph工具,通过解析Spring Boot注解(如@RestController、@RequestMapping)和Docker配置,分析服务间依赖关系。
  • 利用Apache TinkerPop生成GraphML和SVG格式的依赖图,将服务间调用表示为有向边。
  • 以CC BY-NC-SA 4.0许可证发布数据集和工具,供科研与教育领域公开复用。

实验结果

研究问题

  • RQ1在真实世界的开源微服务系统中,最常见的架构模式和依赖结构是什么?
  • RQ2不同类型的微服务项目(如演示项目与工业级项目)之间的服务依赖关系有何差异?
  • RQ3对代码和Docker配置进行自动化静态分析,在多大程度上能准确捕捉微服务中的真实服务间通信?
  • RQ4一个标准化的、公开可用的微服务项目数据集,是否能够实现软件架构研究中的可复现研究和跨项目比较?

主要发现

  • 该数据集包含20个真实世界的微服务项目,服务数量在5到25个之间,代码量在约1K至约70K KLOC之间。
  • MicroDepGraph通过分析Spring Boot注解和Docker配置,成功提取了服务间依赖关系,为所有20个项目生成了准确的依赖图。
  • 该工具为每个项目生成了结构化的GraphML和SVG输出,支持与Gephi等图分析工具集成,便于进一步探索。
  • 该数据集包含演示项目(如Spring PetClinic、eShopOnContainers)和工业级系统(如Spinnaker、FTGO),覆盖了多样的架构形态。
  • 该数据集以宽松许可公开发布,支持可复现研究和长期科研使用。
  • 作者指出工具覆盖范围(如仅支持Spring框架的API调用)和项目代表性(缺乏闭源系统)存在局限,建议未来工作扩展至多框架支持和工业级规模分析。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。