October 19, 2026
Practical Approach to Migrating Monolithic Systems to Microservices Architecture.
Practical Approach to Migrating Monolithic Systems to Microservices Architecture.
Thiego Welington Silva Gagliard; Ariel da Silva Dias
DOI: 10.22167/2675-6528-202603505
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The growth and evolution of software systems have frequently increased the complexity of monolithic applications, resulting in limitations in scalability, maintenance, and flexibility. The microservices architecture emerged as an alternative, allowing the decomposition of the system into smaller, autonomous, and independently deployable components. The study aimed to develop and validate a system prototype for managing the migration process from monolithic to microservices architectures. An applied approach was adopted, of a qualitative and quantitative nature, with a descriptive character, based on a literature review and the implementation of a case study. A monolithic academic system was developed, used as the object of migration. The transition was conducted as a structured project, with the definition of business domains, objectives, metrics, and stages, employing the Strangler Fig architectural pattern to enable a gradual transition. The developed prototype allowed for the modeling and monitoring of process elements, such as projects, domains, microservices, teams, stages, and performance indicators. The migration provided greater isolation between domains, evidenced by localized failure experiments and independent service deployment, and allowed for independent scalability. The prototype favored the organization and control of the process, demonstrating potential as a decision-support tool in projects for migrating monolithic systems to microservices-based architectures.
Keywords: Microservices architecture; Project management; Systems migration.
1. Introduction
The continuous growth and evolution of software systems frequently result in a significant increase in application complexity. Initially, systems are developed with a single codebase and maintained by small teams. However, as new functionalities are added and more developers join the project, complexity rises to a point where a simple change can compromise the integrity of the entire system (Fowler, 2017).
This approach, characterized by a single deployment unit, requires that any modification to a specific functionality results in the deployment of the entire application, defining it as a monolithic architecture (Newman, 2020). The increased complexity and code size inherent in these systems lead to limitations in terms of scalability, flexibility, and maintainability, driving the search for more efficient architectural patterns.
In this context, the microservices architecture emerges as a promising alternative to mitigate the challenges presented by monoliths. It proposes the decomposition of software into smaller, autonomous components (Hassan et al., 2024), which are modeled around specific business domains and can be deployed independently (Newman, 2020). Fowler (2017) complements this definition, describing a microservice as a small application that performs a single task efficiently.
The adoption of the microservices architecture offers several qualitative advantages, such as reducing the time to market for new features, increasing the autonomy of development teams, and facilitating the incorporation of new technologies (Newman, 2020). Companies like Uber and Netflix, when facing scalability issues with their monolithic systems, opted for migration to microservices-based architectures (Fowler, 2017).
However, migrating from monolithic systems to microservices is not a trivial process and presents significant challenges. Newman (2020) highlights that this transition generally requires considerable investment, including additional personnel and financial resources. The absence of adequate planning can lead to a scenario where the migration priority overrides the development of new functionalities, resulting in a time-consuming and costly process, where the initial motivation may be lost.
Given this scenario, when the monolithic architecture no longer meets organizational objectives, it becomes imperative to consider migrating to microservices. The complexity involved and the risks associated with a lack of planning justify the need for a structured approach to manage this process. This work proposes the development and validation of a prototype system for managing the migration process from monolithic architectures to microservices.
2. Material and Methods
The study adopted an applied approach, of a qualitative and quantitative nature, with a descriptive and experimental character, involving prototyping. Its objective was to develop and validate a system prototype for managing the migration of monolithic architectures to microservices. The application architecture, at the monolithic and microservices levels, was the independent variable. The quantitative dependent variables included compilation time, artifact size, startup time, memory consumption, HTTP latency,
processing capacity
and failure rate. Qualitatively, fault isolation, functional coupling, and operational autonomy were evaluated.
The methodology was structured in five stages: bibliographic survey, development of a monolithic system, modeling and implementation of the management prototype, definition and execution of the migration process, and testing and analysis of metrics. The first stage consisted of a bibliographic survey to ground the study, focusing on microservices architecture, monolithic systems, and migration strategies, using concepts such as
Domain-Driven Design
(DDD) and the standard
Strangler Fig
.
In steps two and three, a monolithic academic system, the object of migration, was developed, with functionalities for registering students, courses, subjects, professors, and assigning classes. In parallel, a prototype system was implemented to manage the migration process. Both were developed on the .NET platform, using Microsoft SQL Server Express 2022 and Entity Framework Core, with the prototype including an interface in HTML, CSS, and JavaScript. The systems were containerized with Docker Engine (version 27.4.0) and developed in a Windows 11 environment with an AMD Ryzen 7 7300U processor and eight gigabytes of RAM.
For the prototype, models were defined for Migration Project, Business Domain, Team and Members, Microservice, Migration Stages, Migration Objectives, and Metrics. The fourth stage comprised the definition and execution of the migration from the monolithic system to microservices, treated as a structured project. The migration was justified by coupling and scalability issues of the monolith, aiming for operational autonomy and independent scalability per domain. The
Domain-Driven Design
(DDD) to delimit the domains of Professor, Student, and Course.
The migration process followed the architectural pattern
Strangler Fig
, allowing the gradual replacement of functionalities, starting with the identification of the Courses domain as the first to be extracted (Newman, 2020). Subsequently, a microservice was created for this domain, its isolated operation was validated, and calls from the monolithic application were redirected to the new microservice using an API Gateway developed in Ocelot (Fowler, 2017). This cycle was repeated for the other domains. The migration objectives were to reduce functional coupling, allow independent scalability per domain, and increase team autonomy.
In the final stage, the process of tests and comparative analyses was initiated in a controlled Linux Ubuntu environment (version LTS 24.0.4 LTD), with an Intel Core 7 240h processor and sixteen gigabytes of RAM. Explicit computational resource limits were defined for the application containers (1.0 CPU and six gigabytes of RAM maximum), while the database container received no limits. Each microservice was deployed with two active instances, and the monolithic system with a single instance.
An automated script in
shell-based script
(Bash) was developed to compile, package, initialize, and monitor applications, using .NET 8.0 SDK, Docker Engine (version 27.4.0), Docker Compose, and the utility
curl
. The script measured the compilation time and the size of the generated artifacts. The initialization time was measured from container startup to availability for HTTP requests. Resource consumption metrics, such as Docker image size and RAM consumption, were collected with the command
docker stats
.
For the performance and scalability evaluation, a load test was conducted with the K6 tool (version 1.5.0), using a progressive load model from one hundred to ten thousand virtual users, in eight thirty-second stages. HTTP GET requests were made to the
endpoints
/api/Course, /api/Professor and /api/Student, with isolated tests and a one-second interval. The collected metrics included response time, failure rate, and
processing capacity
. Acceptance Criteria were established: 95% of requests with response time below 500 milliseconds and failure rate below 1%. The qualitative analysis of domain coupling and independence was performed by simulating a critical error in a
endpoint
to compare the behavior of the architectures.
3. Results and Discussion
The process of migrating from monolithic architectures to microservices, as outlined by Villaca et al. (2024), can be understood in four fundamental stages: in-depth analysis of the existing monolithic system, subsequent definition of the microservices architecture, controlled execution of the migration, and continuous monitoring of the results. In this study, the developed prototype served as a central tool to manage and assist each of these phases, from identifying the problems inherent in the monolith to empirically evaluating the gains achieved with the new architecture. The transition to microservices is justified when the current architecture hinders organizational growth, requiring clear objectives and detailed analysis for decomposition (Newman, 2020).
The justification for decomposing into microservices in the studied academic system was based on the need for operational autonomy per domain, the reduction of cross-impact between areas, and independent scalability according to the demand of each flow. The original monolithic system presented significant coupling between the professor and student flows, where a failure in one could compromise the entire application. Furthermore, the difficulty in ensuring autonomy for development teams and the scalability limitations during periods of high demand, such as enrollment, were central problems. The application of Domain-Driven Design (DDD) was crucial for delimiting the Professor, Student, and Course domains, avoiding data replication and promoting modularity (Villaca et al., 2024).
The primary objectives of the migration were established to reduce coupling between functional areas, allow independent scalability per domain, and increase the autonomy of teams responsible for services. To achieve these objectives, the migration was conducted as a structured project, adopting the Strangler Fig architectural pattern, which enabled the gradual replacement of monolithic functionalities with independent microservices. This incremental approach, as recommended by Fowler (2017) and Newman (2020), minimized risks and allowed for continuous impact assessment, ensuring a controlled and secure transition. Each microservice was developed and validated in isolation, being integrated into the system through an API Gateway for request redirection.
The migration management prototype was fundamental for modeling and tracking the various elements of the process. It allowed for the registration of migration projects, the definition of business domains, the creation of microservices, the organization of teams, and the specification of performance steps and metrics. This centralized structure facilitated detailed progress monitoring, resource management, and the evaluation of strategic alignment with business objectives. Although the practical application of the team model was limited by the academic context, the prototype’s ability to organize and visualize these components demonstrated its potential as a decision-support tool.
Regarding operational deployment metrics, the results showed a significant advantage for the microservices architecture. The monolithic system’s compilation time was 1438 ms, while the individual microservices (Professor, Student, Course) presented compilation times between 820 ms and 838 ms. Similarly, the monolith’s startup time was 26706 ms, drastically higher than the microservices’ times, which ranged between 6488 ms and 6501 ms. This reduction in “build” and “deploy” times corroborates Newman’s (2020) claims about the operational efficiency of decomposition, favoring shorter delivery cycles and independent deployments, which translates into greater agility and autonomy for development teams.
The analysis of the size of the published artifacts also revealed notable differences. The monolithic artifact measured 84 KB, while the microservices presented sizes between 48 KB and 52 KB. However, when considering the total RAM consumption, the results indicated that, in aggregate, the microservices demanded a larger volume of computational resources. The monolith consumed 453.6 MiB of RAM, while each individual microservice consumed between 264.1 MiB and 267.1 MiB. This observation, although it may seem counterintuitive in a superficial analysis, aligns with Fowler’s (2017) perspective, which emphasizes that the main goal of microservices is not the reduction of computational costs, but rather the improvement of attributes such as scalability, fault isolation, and resilience.
The higher aggregate demand for memory in microservices reflects the inherent overhead of running multiple independent processes and the communication infrastructure between them. This finding reinforces the importance that the decision to migrate to microservices should be driven by clear strategic objectives, such as the need for greater flexibility and responsiveness to change, and not merely by an expectation of immediate reduction in infrastructure costs. Efficiency is redefined in the context of microservices, prioritizing system agility and evolvability over strict resource optimization at a single execution point.
One of the most significant findings in terms of reliability and resilience emerged from a qualitative failure experiment. By introducing a critical error in an “endpoint” of the Professor flow, a striking structural difference was observed between the architectures. In the monolithic system, the incorrect alteration resulted in the complete crash of the application, making all functionalities, including Student and Course, inaccessible. This prevented the continuity of workflows and the deployment of unrelated modules, highlighting the high coupling and low fault tolerance inherent in this architecture.
In contrast, in the microservices-based architecture, the same critical failure in the Professor service remained restricted exclusively to that domain. The Student and Course “endpoints” continued to be operational, allowing for partial business continuity while the affected service was being corrected. This behavior validates the principle of fault isolation, one of the main advantages of microservices, as highlighted by Fowler (2017). The architectural decomposition therefore proved to directly contribute to greater system resilience, minimizing the systemic impact of localized errors and ensuring the availability of other critical functionalities.
The qualitative analysis of the coupling between domains reinforced that the microservices architecture promoted greater functional and organizational independence. This characteristic is crucial for the autonomy of development teams, allowing each team to focus on a specific domain without creating excessive dependencies with other areas of the system. Although the study was conducted in an academic context, limiting the full application of the team model, the technical results observed provide empirical evidence supporting the relationship between the adoption of microservices and the formation of more autonomous teams, as proposed by Gervino (2020). The reduction of technical and organizational dependencies is a key factor for agility and innovation.
To complement the performance analysis and evaluate the system’s capacity under load, tests were conducted using the K6 tool, with a progressive load model that increased the number of virtual users from 100 to 10,000. The objective was to analyze the stability, performance, and reliability of the monolithic and microservices architectures under stress. The metrics collected included total response time, HTTP failure rate, and throughput, with acceptance criteria establishing that 95% of requests should have a response time less than 500 ms and a failure rate not exceeding 1%. These tests were executed in isolation for each endpoint (Course, Professor, Student) to avoid cross-interference.
Load test results for the Professor “endpoint” revealed significant degradation in the monolithic scenario, where the p95 latency reached 21.02 seconds and the HTTP failure rate was 5.75%. In contrast, the microservices architecture demonstrated greater robustness, with p95 latency at 4.66 seconds and a failure rate of 0.00%. Although both scenarios did not fully meet the Service Level Agreement (SLA) of p95 below 500 ms under 10,000 virtual users, the performance difference is notable. The 5.75% failure in the monolith compromised reliability, while microservices maintained availability, even with high latencies.
In terms of processing capacity, the throughput at the Professor “endpoint” was substantially higher in the microservices architecture, with 1,375.06 requests per second, representing an increase of approximately 164.7% compared to the 519.46 requests per second of the monolith. This significant gain in throughput, coupled with the absence of failures, demonstrates the distributed architecture’s greater capacity to absorb load and process requests. Such behavior is in line with the advantages of independent scalability of microservices, as pointed out by Newman (2020), which allows for horizontal replication of specific services to meet growing demand.
For the Course “endpoint”, the microservices architecture also presented expressive improvements. The p95 latency decreased from 10.83 seconds in the monolith to 3.58 seconds in microservices, a reduction of 66.9%. Throughput increased from 694.57 requests per second to 1,539.96 requests per second, an increase of 121.7%. In both cases, the HTTP failure rate remained at 0.00%, indicating that degradation under load manifested primarily in latency, not in service availability. Although the 500 ms SLA was not fully met, the relative performance of microservices was consistently superior.
Regarding the “endpoint” Student, the results followed the same trend of improvement. Average latency decreased from 3.70 seconds in the monolith to 2.48 seconds in microservices, a 33.0% reduction. The median also showed a reduction of 41.6%, going from 3.29 seconds to 1.92 seconds. The p95 latency improved from 8.66 seconds to 6.83 seconds. Throughput increased by approximately 34%, from 779.93 requests per second in the monolith to 1,044.53 requests per second in microservices. The rate of requests served below 500 ms was 17% in microservices versus 8% in the monolith, even with 0.00% failures in both scenarios, reinforcing the greater load absorption capacity of the distributed architecture.
The aggregated analysis of load tests demonstrates that, across all evaluated domains, the microservices architecture exhibited superior performance to the monolith in terms of latency and throughput, in addition to significantly greater robustness in preventing failures under stress. However, it is important to note that, even with the relative gains, the microservices-based system still did not fully meet the “threshold” of 500 ms for p95 latency in the 10,000 virtual users regime. This indicates that, although the migration improves comparative metrics, compliance with an aggressive SLA may require additional infrastructure and resource adjustments, even in a distributed architecture, as the system reached a saturation point.
The prototype developed in this study proved to be an effective tool for supporting the organization, monitoring, and evaluation of projects migrating from monolithic systems to microservices-based architectures. By enabling the modeling of projects, domains, microservices, teams, stages, and metrics, it offers a structured and controlled view of the transition process. This management capability is crucial for mitigating the challenges and risks associated with complex migrations, such as loss of motivation or deviation from priorities, as warned by Newman (2020).
Although the study was conducted in an academic context, the methodological approach adopted and the proposed models have applicability in real-world scenarios. Structuring the migration as a measurable, goal-oriented project, using patterns like Strangler Fig, offers a roadmap for companies seeking to modernize their architectures. The results obtained, both qualitative and quantitative, provide empirical evidence validating the technical feasibility and operational benefits of the microservices architecture, contributing to more informed decision-making in future architectural migration projects.
In summary, the research achieved its objective of developing and validating a system prototype for managing the migration process from monolithic architectures to microservices. The findings demonstrated that decomposition into microservices favored the reduction of coupling between functional areas, fault isolation, and independent scalability per domain. Operational deployment metrics indicated gains in build and initialization times, while load tests showed greater load absorption capacity and robustness under stress, despite saturation in extreme scenarios. The prototype proved to be a valuable tool for structuring and monitoring the migration, corroborating the literature on the advantages of microservices architecture for greater system agility and resilience.
4. Conclusion
The study aimed to develop and validate a prototype system for managing the process of migrating architectures from monolithic to microservices. It was found that decomposing the system into microservices favored the reduction of coupling between functional areas, fault isolation, and independent scalability per domain. Localized failure experiments and independent service deployment highlighted greater isolation between domains. In operational terms, a significant reduction in compilation and initialization times for microservices was identified compared to the monolith. Although the aggregate RAM consumption was higher in microservices, load tests demonstrated a superior load absorption capacity and greater robustness under stress, with more favorable latencies and throughputs, even though the system reached a saturation point in extreme demand scenarios. The developed prototype enabled the modeling and tracking of crucial process elements, such as projects, domains, microservices, teams, stages, and performance indicators.
The main contribution of this study lies in the development of a practical tool that supports the organization, monitoring, and evaluation of architectural migration projects, offering a structured and measurable roadmap for the transition. This approach helps mitigate the risks associated with complex migrations and enables more informed decision-making. However, the full application of the team model in the prototype was limited by the academic context of the study. Furthermore, load testing results indicated that, despite relative performance gains, compliance with aggressive Service Level Agreements may require additional infrastructure and resource adjustments, even in distributed architectures. The proposed models and approach, although validated in an academic environment, have applicability in real-world scenarios, serving as a basis for modernizing software architectures in companies.
Bibliographic References
Fowler, S. (2017). Microsserviços Prontos Para a Produção: construindo sistemas padronizados em uma organização de engenharia de software. São Paulo: Novatec Editora.
Gervino, M. T. (2020). MIGRAÇÃO DE SOFTWARE MONOLÍTICO PARA MICRO SERVIÇOS: uma revisão sistemática da literatura. Disponível em: < https://revista.fatectq.edu.br/interfacetecnologica/pt_BR/article/view/700>. Acesso em: 12 jan. 2026.
Hassan, H.; Abdel-Fattah, M. A.; Mohamed, W. (2024). Migrating from Monolithic to Microservice Architectures: A Systematic Literature Review. Disponível em: < https://www.researchgate.net/publication/385377208_Migrating_from_Monolithic_to_Microservice_Architectures_A_Systematic_Literature_Review>. Acesso em: 12 jan. 2026.
Newman, S. (2020). Migrando sistemas monolíticos para microsserviços: Padrões evolutivos para transformar seu sistema monolítico. 1ed. Novatec, São Paulo, SP, Brasil.
Villaca, G. L. D.; Silva, I. F. da; Assunção, W. K. G.; Rocha, R. B.; Fermino, G. C. (2024). Strategies for Mitigating Microservice Anti-Patterns in the Pre-Migration of Monolithic Legacy Systems. Disponível em: < https://sol.sbc.org.br/index.php/eres/article/view/31860 >. Acesso em: 12 jan. 2026.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform