Detecting Microservice's Architectural Anti‐Pattern Indicators Using Graph Neural Networks

ABSTRACT Introduction Organizations moving from monolithic to microservice architectures face new challenges due to distributed complexity. Architectural Anti‐Patterns (Smells) can arise and contribute to Technical Debt, while current detection approaches remain manual or semi‐automated and prone to error. Methods This study aims to address this gap by proposing an automated detection tool leveraging graph neural networks (GNNs). Microservice systems are modeled as graphs, with services as nodes and their relationships as edges. Graph neural networks (GNNs) are applied to detect four anti‐patterns: (1) cyclic dependencies, (2) enterprise service bus (ESB) usage, (3) microservice greediness, and (4) inappropriate service intimacy. Large language models (LLMs) are used to generate and expand architectural graph datasets to address data scarcity. Results The GNN approach achieves improved detection performance, with up to a 1.2% F1‐score increase over existing tools such as Msanose and Arcan. Conclusion Combining GNNs with LLM‐augmented data enhances automated detection of microservice anti‐patterns and supports more effective architectural assessment.

Institutions

Publication Details

Journal
Software Practice and Experience
Published
2025-12-08
DOI
https://doi.org/10.1002/spe.70035
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detecting Microservice's Architectural Anti‐Pattern Indicators Using Graph Neural Networks

Software Practice and Experience
Software System Performance and Reliability
article

Detecting Microservice's Architectural Anti‐Pattern Indicators Using Graph Neural Networks

article en

Abstract

ABSTRACT Introduction Organizations moving from monolithic to microservice architectures face new challenges due to distributed complexity. Architectural Anti‐Patterns (Smells) can arise and contribute to Technical Debt, while current detection approaches remain manual or semi‐automated and prone to error. Methods This study aims to address this gap by proposing an automated detection tool leveraging graph neural networks (GNNs). Microservice systems are modeled as graphs, with services as nodes and their relationships as edges. Graph neural networks (GNNs) are applied to detect four anti‐patterns: (1) cyclic dependencies, (2) enterprise service bus (ESB) usage, (3) microservice greediness, and (4) inappropriate service intimacy. Large language models (LLMs) are used to generate and expand architectural graph datasets to address data scarcity. Results The GNN approach achieves improved detection performance, with up to a 1.2% F1‐score increase over existing tools such as Msanose and Arcan. Conclusion Combining GNNs with LLM‐augmented data enhances automated detection of microservice anti‐patterns and supports more effective architectural assessment.

Software Practice and ExperienceVol. 56(3)
Iran University of Science and Technology (IR)
Openalex Percentile: Top 38%
Software System Performance and Reliability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.