TL;DR
This paper provides a comprehensive "state of the union" on software architecture erosion (AEr) by analyzing 73 research studies. It establishes a unified vocabulary, identifies the technical and human-centric causes of architectural decay, and catalogs the tools available to help engineers keep their systems from becoming unmaintainable "big balls of mud."
What Problem Does This Paper Address?
As software systems evolve, they often drift away from their intended design. This phenomenon, known as architecture erosion (AEr), is like a slow-moving rot: the system might still "work" today, but its internal structure becomes increasingly brittle, making it harder, riskier, and more expensive to add new features.
The challenge is that the research on AEr has been fragmented. Different researchers use different terms (like "architectural decay" or "design rot"), and there was no clear consensus on exactly what causes it or how to best measure it. This paper aims to bridge that gap by providing a systematic, bird's-eye view of the field to help both researchers and practitioners improve architectural sustainability.
Methods
The authors conducted a Systematic Mapping Study (SMS), a rigorous type of literature review. Their process involved:
- Broad Search: Querying seven major electronic databases and manually checking 21 top-tier journals and conferences for papers published between 2006 and 2019.
- Rigorous Selection: Filtering thousands of results down to 73 primary studies through three rounds of manual review and "snowballing" (following citation trails).
- Qualitative Synthesis: Using the Constant Comparison Method—a technique from grounded theory—to code and categorize the data. This allowed them to move beyond simple statistics and build meaningful taxonomies for symptoms, causes, and consequences.
Datasets
The primary "dataset" for this study is the curated collection of 73 research papers identified through the SMS process. To support transparency and future research, the authors released a replication package as an online resource, containing the full list of selected studies and the raw data extracted from them.
Key Insights and Ideas
- AEr is More Than Just Broken Rules: While many define erosion as "violating design rules," the authors found it is actually four-dimensional. It involves Violations (divergence from plan), Structural issues (bad internal organization), Quality degradation (declining maintainability), and Evolutionary stagnation (the system becoming "resistant to change").
- The "Incubation Period": Erosion often has a lag time. A system can suffer from severe internal erosion while still performing perfectly well for the end-user. By the time performance drops, the "rot" is often so deep that the system is irreparable.
- Knowledge Vaporization: One of the most critical non-technical causes of erosion is the loss of architectural knowledge. When developers leave a project or documentation isn't maintained, the "why" behind design decisions vanishes, leading the remaining team to make changes that inadvertently destroy the architecture.
- The Vicious Cycle of Technical Debt: Technical debt is both a cause and a consequence of AEr. Taking shortcuts leads to erosion, and an eroded architecture makes it impossible to implement new features without taking more shortcuts.
Key Results
- Taxonomy of Causes: The study identified 13 categories of causes. While technical issues like "evolution issues" and "architectural violations" are common, non-technical factors like poor communication and organizational issues are equally significant.
- Symptoms as Early Warning Signs: Symptoms were categorized into four groups. Structural symptoms (like "architectural smells" or undesired dependencies) are the most frequently discussed indicators in the literature.
- Tool Landscape: The authors cataloged 35 tools (e.g., Lattix, Sonargraph, Axivion) used to detect erosion. They found that most tools focus on Architecture Conformance Checking (ACC)—verifying if the code still matches the high-level design.
- Lessons Learned: Over 200 specific lessons were extracted, emphasizing that preventing erosion is significantly cheaper than "remedial" maintenance (trying to fix it after the fact).
Limitations and Future Work
- The Research-Practice Gap: Many of the tools identified are academic prototypes or only support a single language (predominantly Java). There is a dire need for more versatile, production-ready tools that support modern, multi-language environments.
- Lack of Economic Data: While everyone agrees erosion is expensive, there is very little empirical data quantifying the actual financial cost of AEr in industrial settings.
- Modern Architectures: Most existing research focuses on traditional monolithic systems. The authors call for more studies on how erosion manifests in modern paradigms like Microservices, Systems-of-Systems (SoS), and DevOps pipelines.
- Automation: Future research should explore using machine learning to automatically detect complex architectural "smells" that current static analysis tools might miss.
Summary updated