Continuously Managing Microservice Granularity: An Evidence-Based Industrial Approach

Abstract

Defining and managing appropriate service granularity remains a recurring challenge in the design and evolution of microservices-based systems, directly affecting modularity, maintenance, and operational efficiency. This paper presents early empirical evidence supporting Granulify, a continuous granularity-management approach that dynamically adjusts service boundaries throughout the system lifecycle. Although still preliminary, the results already point to tangible benefits in modularity, maintainability, and operational cost, underscoring the method’s industrial applicability. The proposal is being validated through the reengineering of a real-world investment management platform from a major financial institution in Brazil. The analysed platform manages over 40 million transactions monthly and supports more than 250K internal users across investment, compliance, and trading domains. Preliminary results indicate patterns of architectural fragmentation, productivity impacts, and signs of granularity saturation. We believe that continuous application of this approach will contribute to more informed architectural decisions, balancing modularity, maintenance effort, and operational costs. This ongoing research aims to consolidate Granulify as a practical solution to support teams in the evolutionary management of granularity in microservices architectures.

Publication
XXXIX Simpósio Brasileiro de Engenharia de Software
Yan Justino
Senior Software Engineer

Senior Software Engineer

Carlos Eduardo da Silva
Carlos Eduardo da Silva
Senior Lecturer in Software Engineering and leader of ASERG

Leader of ASERG with research interests exploring the interplay between software engineering and cybersecurity.