Skip to main content
QUICK REVIEW

[Paper Review] Search-Based Software Re-Modularization: A Case Study at Adyen

Casper Schröder, Adriaan van der Feltz|arXiv (Cornell University)|Feb 1, 2021
Software Engineering ResearchComputer Science1 citations
TL;DR

This paper presents a case study on applying multi-objective evolutionary optimization for software re-modularization in Adyen's large-scale codebase (5.5M+ lines of code). It introduces a novel search objective that models transitive coupling and build cost, demonstrating scalability, measurable improvement in modularization quality, and developer validation of recommendations, though module move suggestions remain imprecise.

ABSTRACT

Deciding what constitutes a single module, what classes belong to which module or the right set of modules for a specific software system has always been a challenging task. The problem is even harder in large-scale software systems composed of thousands of classes and hundreds of modules. Over the years, researchers have been proposing different techniques to support developers in re-modularizing their software systems. In particular, the search-based software re-modularization is an active research topic within the software engineering community for more than 20 years. This paper describes our efforts in applying search-based software re-modularization approaches at Adyen, a large-scale payment company. Adyen's code base has 5.5M+ lines of code, split into around hundreds of modules. We leveraged the existing body of knowledge in the field to devise our own search algorithm and applied it to our code base. Our results show that search-based approaches scale to large code bases as ours. Our algorithm can find solutions that improve the code base according to the metrics we optimize for, and developers see value in the recommendations. Based on our experiences, we then list a set of challenges and opportunities for future researchers, aiming at making search-based software re-modularization more efficient for large-scale software companies.

Motivation & Objective

  • To evaluate the effectiveness of search-based software re-modularization in a large-scale enterprise system with millions of lines of code.
  • To address the challenge of modularization in fast-paced, team-based development environments where module boundaries are often ad-hoc.
  • To integrate domain-specific, company-internal metrics—particularly transitive coupling and build cost—into the re-modularization optimization process.
  • To assess developer perception and practical utility of algorithmic recommendations in real-world industrial settings.
  • To identify key challenges and opportunities for future research in scaling search-based re-modularization to industrial software systems.

Proposed method

  • Employed multi-objective evolutionary optimization (specifically NSGA-III) to explore re-modularization solutions across hundreds of modules.
  • Defined a novel optimization objective combining transitive coupling and build cost, reflecting real-world performance impacts in Adyen’s module caching system.
  • Used established software quality metrics such as cohesion, coupling, and change frequency as additional objectives in the Pareto front search.
  • Filtered and grouped algorithmic recommendations into representative sets for developer evaluation, focusing on class move refactorings.
  • Conducted interviews with module experts to collect qualitative feedback on the accuracy and perceived value of recommendations.
  • Proposed a feedback loop for integrating developer perceptions into future optimization cycles, suggesting integration during code reviews.

Experimental results

Research questions

  • RQ1Can search-based re-modularization techniques scale effectively to enterprise codebases of 5.5M+ lines of code and hundreds of modules?
  • RQ2How effective are novel search objectives—particularly those modeling transitive coupling and build cost—in improving modularization quality?
  • RQ3To what extent do developers perceive algorithmic re-modularization recommendations as accurate and valuable in practice?
  • RQ4What are the key challenges in deploying search-based re-modularization in industrial settings, and how can they be addressed?
  • RQ5How can developer feedback be systematically integrated into the optimization process to improve recommendation precision?

Key findings

  • The search-based approach successfully scaled to Adyen’s large codebase, producing solutions that significantly improved optimization metrics such as coupling and cohesion.
  • The novel objective combining transitive coupling and build cost demonstrated convergence and was perceived as fundamental by Adyen developers, leading to meaningful improvements in module caching efficiency.
  • Developers validated the majority of recommended class move refactorings as accurate and valuable, indicating strong practical relevance of the algorithmic output.
  • While the algorithm correctly identified classes in wrong modules, the suggested target modules for refactoring were often imprecise, indicating a need for improved recommendation logic.
  • The integration of developer feedback into the optimization loop is essential but currently costly; future systems should embed feedback collection during code reviews to enable scalable, longitudinal improvement.
  • Existing research often lacks real-world validation in industrial settings; this study highlights the need for domain-specific objectives and human-in-the-loop integration in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.