[Paper Review] Distributed Architecture Reconstruction of Polyglot and Multi-Repository Microservice Projects
The paper proposes ModARO, a modular static-analysis framework that uses extractors to reconstruct microservice architectures across multi-repo environments and aggregate results into a unified, distributed model.
Microservice architectures encourage the use of small, independently developed services; however, this can lead to increased architectural complexity. Accurate documentation is crucial, but is challenging to maintain due to the rapid, independent evolution of services. While static architecture reconstruction provides a way to maintain up-to-date documentation, existing approaches suffer from technology limitations, mono-repo constraints, or high implementation barriers. This paper presents a novel framework for static architecture reconstruction that supports technology-specific analysis modules, called \emph{extractors}, and supports \emph{distributed architecture reconstruction} in multi-repo environments. We describe the core design concepts and algorithms that govern how extractors are executed, how data is passed between them, and how their outputs are unified. Furthermore, the framework is interoperable with existing static analysis tools and algorithms, allowing them to be invoked from or embedded within extractors.
Motivation & Objective
- Motivate the need for up-to-date architectural documentation in rapidly evolving microservice ecosystems.
- Introduce a modular static-analysis framework that supports technology-specific extractors for diverse stacks.
- Address multi-repo reconstruction by enabling independent repository analysis with post-hoc aggregation.
- Provide an API and data model to enable integration with existing static analysis tools and workflows.
- Demonstrate how distributed reconstruction preserves loose coupling while enabling aggregated architecture views.
Proposed method
- Define a modular framework where extractors are small, stateless functions that modify a shared JSON-based model.
- Register extractors with schemas that describe the model entities they operate on.
- Implement a recursive reconstruction algorithm that runs extractors on entities, merges outputs, and recurses on sub-entities.
- Use an aggregation (merge) algorithm to combine multiple models into a single unified model with conflict detection.
- Introduce retroactive linking to resolve cross-repository relationships after model aggregation.
- Provide an API to simplify common tasks like file scanning, data extraction, and model injection.

Experimental results
Research questions
- RQ1How can architecture reconstruction be generalized across heterogeneous technologies using modular extractors?
- RQ2Can independent repository analysis be aggregated to produce a coherent global architecture without tight coupling?
- RQ3What data model and aggregation strategy best support distributed reconstruction of microservice architectures?
Key findings
- A JSON-based, modular model with stateless extractors supports technology-specific static analysis.
- Extractors are run against model entities and can be composed with post-extraction aggregation to build a unified architecture view.
- Distributed reconstruction enables each repository to generate a local model that can be aggregated into a global architecture without centralised full-code analysis.
- The aggregation algorithm handles primitives, objects, and arrays with conflict detection to preserve data integrity during merging.
- Retroactive links allow inter-service relationships to be resolved after model aggregation, maintaining loose coupling.
- The framework is designed to interoperate with existing static analysis tools through its extractor API.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.