NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Feature Dataset of Microservices-based Systems

Weipan Yang, Yongchao Xing, Yiming Lyu, Zhihao Liang, Zhiying Tu

Abstract

Microservice architecture has become a dominant architectural style in the service-oriented software industry. Poor practices in the design and development of microservices are called microservice bad smells. In microservice bad smells research, the detection of these bad smells relies on feature data from microservices. However, there is a lack of an appropriate open-source microservice feature dataset. The availability of such datasets may contribute to the detection of microservice bad smells unexpectedly. To address this research gap, this paper collects a number of open-source microservice systems utilizing Spring Cloud. Additionally, feature metrics are established based on the architecture and interactions of Spring Boot style microservices. And an extraction program is developed. The program is then applied to the collected open-source microservice systems, extracting the necessary information, and undergoing manual verification to create an open-source feature dataset specific to microservice systems using Spring Cloud. The dataset is made available through a CSV file. We believe that both the extraction program and the dataset have the potential to contribute to the study of micro-service bad smells.

Introduction

As the software industry shifts from monolithic architectures to microservices, developers often encounter architectural pitfalls known as "microservice bad smells." These include issues like "Nano Services," which are too fragmented to be useful, or "Shared Databases," which create tight coupling. While researchers have defined these smells, empirical study is hindered by a significant bottleneck: a lack of high-quality, labeled feature data. Without standardized datasets, it is difficult to compare detection algorithms or apply machine learning techniques to identify architectural flaws at scale. This paper introduces a new open-source feature dataset specifically designed for microservices-based systems using the Spring Cloud framework to bridge this gap.

Methodology

The authors developed a multi-stage pipeline to extract architectural metrics from mature GitHub projects. The process began with filtering over 5,500 projects down to 55 systems that met criteria for maturity, including having at least four microservices and utilizing service discovery mechanisms.

The multi-stage extraction pipeline from GitHub repository to final CSV dataset.

A set of 23 metrics was established based on the standard Spring Boot three-tier architecture (Presentation, Business Logic, and Data Access layers). These include 14 direct metrics extracted from code (e.g., number of controllers or API endpoints) and 9 derived metrics (e.g., the ratio of attributes to entity classes).

To automate the extraction, a custom tool was built using JavaParser, JGit, and Maven-Model. A critical feature of this tool is its recursive URL extraction capability. Since microservices often call each other using variables or method calls rather than hardcoded strings, the tool recursively traces these calls to accurately map the internal interaction network of the system.

Recursive URL extraction logic used to map service-to-service interactions.

Dataset Characteristics and Insights

The primary output is a feature dataset containing 1,180 data points derived from 55 microservice systems, provided in a .csv format. Analysis of the data revealed several key insights:

  • Power-Law Distribution: Microservice metrics follow a power-law distribution. While most services are small and focused, a few "hub" services (such as Apollo-Portal) are massive and intricate, suggesting that bad smell detection must account for these architectural outliers.
  • Naming Convention Challenges: Automated tools often struggle with non-standard naming (e.g., a package named entitys instead of entity). This highlights the necessity of the manual verification step performed by the authors to ensure data reliability.
  • Communication Evolution: The transition from RestTemplate to newer libraries like WebClient makes static analysis increasingly complex, identifying a moving target for future extraction tools.

Key Results

The extraction program proved highly accurate across most systems. Manual verification confirmed 100% accuracy for structural metrics like controllerNum and interfaceNum. While accuracy for entityNum dropped in specific cases due to naming inconsistencies (e.g., 30% in the gpmall system), these were manually corrected. Interaction mapping (SCD/SCS metrics) achieved over 90% accuracy even in large-scale systems like mall4cloud.

Conclusion

While currently focused on the Java and Spring Cloud ecosystem, this dataset provides a foundational resource for microservice research. Future work will involve expanding the dataset to include other languages and modern communication libraries, as well as labeling the data for specific bad smells to create a "gold standard" for machine learning training in architectural analysis.

Summary updated

BibTeX
@inproceedings{yang2024feature,
  author = {Weipan Yang and Yongchao Xing and Yiming Lyu and Zhihao Liang and Zhiying Tu},
  title = {{A Feature Dataset of Microservices-based Systems}},
  booktitle = {ICSS},
  year = {2024},
  url = {https://openreview.net/forum?id=cDVPyfElgf},
}

Loading related content...

Figure