Article

October 26, 2026

Microservices and monoliths: a comparative analysis of performance, mutability, and compliance in regulated systems

Matheus Henrique Alexandre Libanio; Daniele Aparecida Cicillini Pimenta

DOI: 10.22167/2675-6528-202601223

Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.

Summary

This study evaluated the impact of back-end architectural strategies on a representative e-commerce and fintech system, comparing MVC monolith, modular monolith based on Domain-Driven Design with hexagonal architecture, and event-driven microservices. The objective was to demonstrate which approach best balances performance, mutability, and privacy compliance, according to the General Data Protection Law (LGPD), across three evolutionary waves. To this end, the three architectures were implemented in Go (Golang) and the environment was provisioned on Amazon Web Services (AWS). Performance tests were conducted with the k6 tool, applying four progressive load profiles, and mutability and LGPD compliance were evaluated by inspection. The results revealed that no strategy was universally superior. Microservices demonstrated superiority under extreme load, sustaining 664 req/s in the stress profile of Wave B, but were penalized by multiple synchronous hops in complex operations, where the MVC monolith led with 130.38 req/s in the peak profile of Wave C. The modular DDD/hexagonal monolith presented the best balance between change containment and operational simplicity. All architectures met six of the eight measurable LGPD requirements, with audit trail consistency being atomic in monoliths and eventual in microservices. It was concluded that the ideal architectural choice depends on the context: microservices for elastic scalability and low complexity, modular monolith for balance between mutability and performance, and MVC monolith for systems of lower complexity and low data volume.

Keywords: Software architecture; System performance; Domain-Driven Design; LGPD; Load testing.

1. Introduction

The rapid evolution of the digital landscape, driven by the growth of e-commerce and fintechs, imposes on organizations the pressing need for back-end systems that are not only robust but also highly adaptable and scalable. A system’s ability to respond to continuous changes in business rules and the emergence of new regulated domains is a critical factor for sustainability and competitiveness. In this context, architectural decisions made in the initial phases of software development are of paramount importance, as they directly influence the system’s evolution, maintenance, and performance over time, as highlighted by Bass et al. (2012). Additionally, in environments subject to strict regulations, such as the General Data Protection Law (LGPD) in Brazil (Brazil, 2018), compliance with privacy standards emerges as a first-order non-functional requirement. This legal requirement profoundly impacts the design of the persistence, auditing, and integration layers of systems, making the architectural choice even more complex and strategic.

The dilemma between monolithic and distributed architectures, such as microservices, represents one of the main challenges faced by modern system development teams. Microservices, an architectural style in which the application is decomposed into independent services, each with its own deployment cycle, database, and configuration, are often pointed out by Richardson (2018) for their advantages in scalability and autonomous deployment. However, this approach also introduces considerable operational complexity, which can manifest in challenges of management, monitoring, and coordination among the multiple services. The promise of greater agility and resilience of microservices, therefore, must be weighed against the costs and complexity inherent in their adoption and maintenance.

In contrast, modular monoliths emerge as an alternative that seeks to reconcile the operational simplicity of monoliths with the benefits of context isolation. “Domain-Driven Design” (DDD), as proposed by Evans (2003), offers an approach to organize code around bounded contexts by domain, which can provide isolation of business contexts without the overhead of a distributed architecture. Complementarily, the hexagonal architecture, described by Cockburn (2005), acts as an effective mechanism for decoupling domain logic from infrastructure, being applicable to both modular monoliths and microservices. The architectural choice also directly impacts continuous delivery metrics, such as deployment frequency and recovery time, reinforcing the importance of mutability criteria in evaluating back-end strategies (Forsgren et al., 2018). It is crucial to note that the performance benefits of microservices are not universal; Dragoni et al. (2017) highlight that the granularity of services and the communication cost between them can determine whether distribution represents a gain or a penalty compared to well-structured monolithic solutions, underscoring the need for a contextualized evaluation by load profile and operation topology.

Regarding privacy, the concept of “Privacy by Design”, fundamental for integrating privacy controls into the system architecture from its conception (Cavoukian, 2009), directly aligns with LGPD requirements. The International Organization for Standardization (ISO)/International Electrotechnical Commission (IEC) 27701:2019 standard, which is an extension of ISO/IEC 27001 for privacy information management, formalizes the technical and organizational controls that guide the compliance assessment adopted in this work (ISO, 2019). The validity of the quasi-experimental design employed, which compares multiple strategies with fixed variables, is based on Wohlin et al. (2012), who demonstrate the suitability of controlled case studies for empirical investigations in software engineering.

Faced with this complex scenario, e-commerce and fintech organizations regulated by the LGPD often find themselves needing to choose architectural strategies without an adequate empirical basis for their specific contexts. An architecture may exhibit satisfactory performance under low load, but collapse under traffic peaks, accumulate significant change costs over evolutionary cycles, or introduce critical inconsistencies in the audit trail required by law. These consequences often only manifest when the dimensions of mutability, performance, and compliance are evaluated jointly and longitudinally. The software engineering literature, while individually documenting the properties of each approach, records a scarcity of studies that combine these three dimensions in controlled experiments, using the same business domain and multiple progressive load profiles. The absence of this empirical basis hinders informed decision-making, exposing organizations to operational and regulatory risks.

To address this problem and provide empirical subsidies for architectural decision-making in regulated systems, this work conducts a controlled experiment. The main objective is to demonstrate which back-end architectural strategy — Model-View-Controller (MVC) monolith, modular monolith based on Domain-Driven Design with hexagonal architecture, or event-driven microservices — best balances the dimensions of performance, mutability, and LGPD compliance over evolution waves of a representative e-commerce and fintech system.

2. Material and Methods

The research was designed as an applied case study with a quasi-experimental design, comparing three architectural back-end strategies in controlled evolution scenarios (Wohlin et al., 2012). The central objective was to demonstrate which approach best balances performance, mutability, and compliance with the General Data Protection Law (LGPD) throughout evolutionary waves of a representative e-commerce and fintech system.

The unit of analysis consisted of a privacy and consent management system in the e-commerce and fintech domain, which included integrations via Application Programming Interface (API) and an analytical pipeline. Three evolution stages were executed, named Waves A, B, and C, with equivalent functional requirements for each architectural strategy, keeping the scope, volume, and traffic mix constant.

The Go (Golang) programming language, version 1.24, was employed for the development of the three architectural variations, selected for its native efficiency in high-concurrency environments, for the goroutine model for parallel processing, and for static compilation (Nygard, 2007). The Hypertext Transfer Protocol (HTTP) over the Representational State Transfer (REST) architectural style was adopted as the communication standard between clients and services, ensuring interoperability and compatibility with modern API standards.

The MySQL/MariaDB relational database was selected for its support of the structured data model for consent and audit domains, its compatibility with ACID transactions, and its availability on the Amazon Relational Database Service (RDS) managed service. Database access was performed via the native Go driver.

Three architectural variations were implemented on the same consent management and auditing domain. The Model-View-Controller (MVC) monolith, adopted as the baseline, organized the application into data model, business logic, and request control within a single executable process, with integrated controllers, services, and repositories (Bass et al., 2012).

The modular monolith based on Domain-Driven Design (DDD) with hexagonal architecture organized the code into domain-bounded contexts, with explicit separation between domain layers, use cases, adapters, and HTTP delivery, following the principles of Evans (2003) and Cockburn (2005). In this experiment, five bounded contexts were implemented: consent, policy, auditing, reporting, and integrations.

Event-driven microservices decomposed the application into independent services, each with its own deployment cycle, database, and configuration, communicating synchronously via HTTP/REST and asynchronously via domain events (Richardson, 2018; Newman, 2021). Five services were implemented: consent-service, policy-service, audit-service, report-service, and lineage-service.

The execution environment was provisioned on the Amazon Web Services (AWS) platform. A single Elastic Compute Cloud (EC2) instance of type t3.small, with 2 gigabytes (GB) of Random Access Memory (RAM), was used in the us-east-1 region for the execution of the three architectures. The MySQL/MariaDB database was provisioned via Amazon RDS, on the db.t4g.micro instance. All dependency versions were fixed to ensure reproducibility between experiments.

The experiment was structured in three waves of evolution. Wave A (Minimum Viable Product) implemented basic functionalities, including health “endpoints” (GET /health) and initial consent management (GET /consents and POST /consents). Wave B (Compliance) expanded business rules, adding consent auditing and reporting, with “endpoints” for transactional registration, consent revocation (PATCH /consents/{document_id}/revoke), privacy policy versioning (POST /policies), and immutable audit trail query (GET /audit/events and POST /audit/events).

In Wave B, the three architectures were migrated from the default router of the “net/http” library to the “chi” v5 router, which is necessary for dynamic route parameter support. The main architectural difference in Wave B resided in the audit trail logging strategy: in the MVC and modular monoliths, consent creation and audit event logging occurred within a single database transaction, ensuring atomicity. In microservices, the consent-service performed the logging in its own database and then sent an HTTP call to the audit-service for event logging, introducing eventual consistency.

Wave C (Scale) introduced personal data traceability requirements (“data lineage”), in compliance with article 37 of the LGPD, which determines the maintenance of records of data processing operations. “Endpoints” were added for recording “lineage” events (POST /lineage) and analytical export of a data subject’s data (GET /lineage/export/{subject_id}). The `data_lineage` table was implemented with immutability restriction via database “triggers” that block UPDATE and DELETE operations.

Performance metrics collection was carried out using the “k6” tool, focusing on “throughput” (quantity of requests processed per second), latency at the 95th (p95) and 99th (p99) percentiles, and HTTP 5xx error rate. The tests were executed remotely from a local machine against the infrastructure provisioned on AWS, simulating realistic network latency.

Four progressive load profiles were applied to each wave: “baseline” (20 virtual users (VUs) constant for 3 minutes), “peak” (200 VUs for 5 minutes), “stress” (400 VUs for 3 minutes), and “endurance” (50 VUs for 60 minutes). Wave C “endurance” tests were executed sequentially to eliminate resource contention between architectures.

Mutability was measured by counting artifacts impacted by waves and automated test coverage. Privacy compliance was assessed by direct inspection of the source code against the requirements of the LGPD (Brazil, 2018) and the ISO/IEC 27701:2019 standard (ISO, 2019). DevOps Research and Assessment (DORA) indicators, such as “deploy” frequency, lead time, change failure rate, and mean time to recovery (MTTR), were recorded according to the methodology proposed by Forsgren et al. (2018).

The collected data were tabulated by architecture and load profile, allowing direct comparison between strategies and identification of degradation thresholds. Source code inspection supported the evaluation of mutability and compliance. The source code of the three architectural implementations used in this work is publicly available.

As a methodological limitation, it should be noted that the experiment was conducted in a controlled environment with a single instance, which may not reflect real-world scenarios with distributed infrastructure and multiple instances.

3. Results and Discussion

The evaluation of back-end architectural strategies in an e-commerce and fintech system, considering performance, mutability, and LGPD compliance across three evolutionary waves, revealed that the superiority of an approach is not universal, but contextual. The initial results of Wave A established a baseline, demonstrating behavioral differences under load even in scenarios of lower functional complexity, and confirmed the stability of the cloud environment provisioned on Amazon Web Services (AWS), with effective communication between the EC2 instance and the RDS database for consent data persistence.

Infrastructure and Environment

The experimental environment was provisioned on the Amazon Web Services (AWS) platform, using a single Elastic Compute Cloud (EC2) instance of type t3.small, with 2 gigabytes of RAM, in the us-east-1 region. This centralized configuration aimed to isolate performance differences originating from the architectural strategy, eliminating heterogeneous infrastructure variables. The MySQL/MariaDB relational database was provisioned via Amazon Relational Database Service (RDS), using a db.t4g.micro instance, ensuring compatibility with ACID transactions and support for the structured data model of the consent and audit domains. All dependencies and their versions were fixed to ensure the reproducibility of the experiments.

Implementation of Wave A

In Wave A, which represented the Minimum Viable Product (MVP), the three architectures were developed to expose basic functionalities. The GET /health endpoints, for application health and database connectivity verification, and GET /consents and POST /consents, which allowed the creation and reading of user consent records, forming the core of the privacy domain, were implemented. The directory structures of the monolithic implementations, both MVC and modular (DDD/hexagonal), were organized to reflect their respective layered or domain context approaches.

Load Tests: Baseline

The first performance test battery, the “baseline”, was executed with 20 constant virtual users (VUs) for three minutes. In this low-contention scenario, the microservices architecture demonstrated a “throughput” of 60.01 requests per second (req/s), approximately 2.3 times higher than monolithic architectures, which registered 26.29 req/s for mono-MVC and 26.24 req/s for mono-modular. The p95 latency for microservices was 145.93 milliseconds, while for mono-MVC it was 149.63 milliseconds and for mono-modular, 150.79 milliseconds. The absence of HTTP 5xx errors in all architectures confirmed the stability of the provisioned environment, establishing a baseline for future comparisons.

Wave B: Compliance, Auditing, and Consent Reporting

Wave B introduced regulatory compliance requirements, expanding the functionalities of the architectures. POST /consents endpoints were added for transactional registration, PATCH /consents/{document_id}/revoke for consent revocation, POST /policies for privacy policy versioning, and GET /audit/events for querying the immutable audit trail. The migration from the default router to “chi” v5 was transparent in terms of performance, maintaining compatibility with Go’s native interface and without introducing significant external dependencies.

The main architectural distinction in Wave B was the audit trail logging strategy. In MVC and modular monoliths, the creation of a consent and the logging of the audit event occurred within a single database transaction, ensuring atomicity. In contrast, in microservices, the consent-service performed the insertion into its own database and then invoked the audit-service via HTTP to log the event, introducing eventual consistency. This trade-off is crucial, as monolithic atomicity offers a strong guarantee of audit data integrity with lower operational complexity, while the distributed approach favors autonomy and independent domain scalability but requires additional mechanisms for handling partial failures.

Mutability in Wave B

The measurement of mutability between Wave A and Wave B, through the count of impacted artifacts, revealed that the MVC monolith presented the lowest number of affected artifacts, with 12 total artifacts (8 new, 4 modified) and 96.4% test coverage. This is due to the concentration of changes in a single layer of “handlers”. The modular monolith, with 16 total artifacts (12 new, 4 modified) and test coverage ≥ 88%, showed greater dispersion, but the changes remained contained within each delimited context. The microservices, in turn, impacted 36 total artifacts (30 new, 6 modified) with test coverage ≥ 90%, reflecting the need for coordination between independent services, each with its own configuration cycle, dependencies, and tests.

Performance in Wave B

Performance tests in Wave B, under four progressive load profiles, showed distinct behaviors. In the “baseline” profile (20 VUs), the modular monolith led with 57.66 req/s and a p99 latency of 212 milliseconds, outperforming microservices (53.38 req/s, p99=297 ms) and the mono-MVC (38.89 req/s, p99=1,060 ms). The high latency of mono-MVC suggests saturation of the database connection “pool”. In the “peak” profile (200 VUs), the mono-MVC collapsed, with a “throughput” of 48.93 req/s and p95 latencies of 14.6 seconds and p99 of 26.9 seconds. In contrast, the modular monolith (539.56 req/s) and microservices (514.64 req/s) maintained controlled latencies (p95 of 204 ms and 275 ms, respectively).

The “stress” profile (400 VUs) showed the most pronounced difference. Both monoliths collapsed completely: the mono-MVC completed only 12 iterations with 85.89% errors due to “timeout”, while the mono-modular did not complete any iterations, registering 100% errors and a p95 latency of 59.9 seconds. The microservices, however, maintained stability, sustaining 664.53 req/s with p95 latencies of 280.72 milliseconds and p99 of 498.35 milliseconds, and completed 17,175 iterations. This result corroborates Richardson’s (2018) premise about the advantage of parallel processing in peak load scenarios.

In the “endurance” test (50 VUs, 60 minutes), executed in parallel, the microservices presented 8.00 req/s and 4,239 complete iterations, surpassing the mono-modular (6.42 req/s, 3,369 iterations) and the mono-MVC (1.52 req/s, 848 iterations). This configuration introduced resource contention (CPU, memory, and connections to the RDS database), meaning the results reflect the behavior of the architectures under resource competition, not the isolated performance of each. The observed hierarchy reinforces the greater resilience of the distributed architecture under sustained load, even in a scenario of contention.

Wave C: Scale, Traceability and Analytical Export

Wave C introduced personal data traceability requirements (“data lineage”), in compliance with Article 37 of the LGPD, which requires maintaining records of data processing operations. For this purpose, POST /lineage “endpoints” were added for registering “lineage” events and GET /lineage/export/{subject_id} for analytical export of a data subject’s data. The `data_lineage` table was implemented with immutability restrictions via database “triggers”, blocking UPDATE and DELETE operations, ensuring the integrity of the traceability trail. Each event recorded the data subject, the operation, the source and destination service, the purpose of the processing, the reference to consent, and a “snapshot” of the processed data.

Wave C Implementation

The main architectural difference in Wave C resided in the location of the “lineage” domain in relation to the request flow. In the MVC monolith, the “lineage” endpoints were added as a single handler file within the same executable process, sharing the database connection. The additional cost was limited to writing and reading from the `data_lineage` table. In the modular monolith, “lineage” was implemented as a complete and independent domain context, following the layered pattern of other domains, without coupling with consent or audit contexts. In microservices, traceability was implemented in a dedicated and autonomous service (lineage-service), created from scratch with its own deployment cycle and database.

This difference had a direct implication on performance: each iteration of Wave C involved two calls to the “lineage” domain (registration via POST /lineage and export via GET /lineage/export/{subject_id}), in addition to the already existing call to the audit-service. In monoliths, these operations occurred in memory, without network overhead. In microservices, each call represented an additional HTTP “hop” between independent processes, accumulating latency proportional to the level of concurrency, an effect that became decisive in the highest load profiles.

Mutability in Wave C

The transition from Wave B to Wave C revealed that the MVC monolith demanded only 3 impacted artifacts (2 new, 1 modified) and 97.8% test coverage, representing the lowest transition cost. The addition of the “lineage” domain in a single layer of “handlers” did not require the creation of new abstractions. The modular monolith required 12 artifacts (9 new, 3 modified) and test coverage ≥ 95% to build the complete layered domain, maintaining containment by context without affecting existing domains. The microservices demanded 10 artifacts (10 new, 0 modified) and 100% test coverage for the entire `lineage-service`, a new service created from scratch, without impacting files of existing services, evidencing total isolation between deployment units.

Performance – Wave C

The performance tests of Wave C followed the same load profiles as Wave B. In the “baseline” (20 VUs), all three architectures achieved 100% “checks” with zero error rate. The p95 latency was above 500 milliseconds in all architectures (560–590 ms), reflecting the additional cost of read and write operations on the `data_lineage` table. The mono-MVC presented the highest “throughput” (35.44 req/s), closely followed by mono-modular (33.23 req/s) and microservices (33.17 req/s), demonstrating equivalent performance at low concurrency, with no measurable advantage from distribution into independent processes.

In the “peak” profile (200 VUs) of Wave C, the leadership pattern inverted. The mono-MVC led with 130.38 req/s, with a p95 latency of 4,780 milliseconds and p99 of 9,620 milliseconds. The mono-modular reached 76.04 req/s and the microservices, 59.02 req/s. This inversion resulted from the accumulated cost of additional HTTP “hops” to the `lineage-service`, penalizing microservices under high concurrency, a finding that corroborates Dragoni et al. (2017) on the impact of the cost of communication between services.

In the “stress” profile (400 VUs) of Wave C, all architectures degraded severely. The mono-modular showed greater resilience, completing 2,836 iterations with 63.8% errors and a p95 of 14.9 seconds, indicating gradual degradation. The mono-MVC completed 1,215 iterations with 40.28% errors, and the microservices completed 1,108 iterations with 39.31% errors, with equivalent performance between both. In the “endurance” test (50 VUs, 60 minutes), executed sequentially to eliminate resource contention, the three architectures maintained stability with a near-zero error rate. The mono-MVC led in absolute iterations (22,918), followed by the mono-modular (13,170) and microservices (12,370), reflecting differences in accumulated latency per iteration, especially in `GET /lineage/export/{subject_id}`.

DORA Metrics

The DORA metrics (Forsgren et al., 2018) allowed quantifying the impact of architectural decisions on the ability to deliver changes. The “deploy” frequency was equivalent in terms of cycles per wave (1 cycle for each architecture), but the operational effort differed: monoliths required restarting a single process, while microservices demanded the coordination of 5 to 6 independent process restarts per cycle. The “lead time” was homogeneous between architectures in this experiment, approximately 11-12 days, due to experimental control that eliminated calendar variability. In a real production environment, microservices would tend to present a shorter “lead time” because they allow independent “deploy” per service.

The estimated change failure rate was higher in the mono-MVC (approximately 15%), with three documented “hotfixes” in Wave A. The modular monolith presented the lowest rate (< 5%), with no documented post-“deploy” failures. Microservices registered approximately 10%, with a critical bug in the `lineage-service` identified and corrected in the same session (MTTR < 1 hour). These data are consistent with Evans’ (2003) theory on change containment in well-defined contexts and with Forsgren et al.’s (2018) analysis on the correlation between test coverage and failure rate.

Privacy Compliance (LGPD/ISO 27701)

The conformity assessment, carried out by direct source code inspection, indicated that the three architectures met six of the eight measurable LGPD requirements throughout the evolutionary waves. The requirements met were: Consent registration (Art. 7, I), Consent revocation (Art. 8, §5), Privacy policy versioning (Art. 8, §6), Immutable audit trail (Art. 37), Data processing traceability “lineage” (Art. 37), and Data export by data subject (Art. 18, II). Data minimization and retention (Art. 6, III and Art. 16) were partially met via a minimal relational schema, without the implementation of an automated retention policy. Data deletion (Art. 18, VI) was considered out of the scope of the experiment.

The most relevant architectural difference for privacy compliance lies in the audit trail consistency model. In monolithic architectures, transactional atomicity ensured that the audit event was never lost, whereas in microservices, eventual consistency required additional mechanisms for delivery guarantee. This distinction is fundamental for the integrity of audit data in regulated systems.

Comparative Analysis

The results obtained over the three waves allow for a multidimensional comparison of architectural strategies. In terms of performance, microservices demonstrated superiority in extreme load scenarios, such as in the “stress” profile of Wave B, where they sustained 664 req/s while monoliths collapsed. However, this advantage was not maintained in operations with multiple synchronous hops between services, as in the “peak” profile of Wave C, where the accumulated cost of network calls penalized microservices and the MVC monolith took the lead with 130.38 req/s.

In terms of mutability, the DDD/hexagonal modular monolith presented the best balance across the three waves. Its structure by bounded contexts contained changes within well-defined layers, without propagation between domains, maintaining high test coverage in all transitions. The MVC monolith concentrated changes in a few files, resulting in the smallest number of impacted artifacts, but with less isolation. Microservices, although they had a higher initial coordination cost, demonstrated total isolation between deployment units for the addition of new services.

Regarding privacy compliance, the three architectures equivalently met most measurable LGPD requirements. The fundamental difference lies in the audit trail consistency: atomic in monoliths and eventual in microservices. Operational complexity was low for the MVC monolith, medium for the modular monolith, and high for microservices. Domain isolation was coupled in MVC, by context in modular, and by service in microservices. In summary, the ideal architectural choice depends on the specific system context, considering the necessary balance between scalability, mutability, and the required compliance guarantees.

4. Conclusion

The study sought to demonstrate which back-end architectural strategy — Model-View-Controller (MVC) monolith, Domain-Driven Design-based modular monolith with hexagonal architecture, or event-driven microservices — best balances performance, mutability, and LGPD compliance dimensions over evolution waves of a representative e-commerce and fintech system. It was found that the superiority of an approach is not universal, but contextual. Microservices demonstrated the ability to sustain extreme loads, reaching 664 req/s in the Wave B stress profile, but were penalized by multiple synchronous hops in complex operations, where the MVC monolith led with 130.38 req/s in the Wave C peak profile. The DDD/hexagonal modular monolith presented the best balance between change containment and operational simplicity across the three waves, with its structure by bounded contexts. In terms of LGPD compliance, the three architectures met six of the eight measurable requirements, with audit trail consistency being atomic in monoliths and eventual in microservices.

The main contribution of this work lies in providing an empirical basis for architectural decision-making in regulated systems, showing that the ideal choice depends on the specific business context and the requirements for scalability, mutability, and compliance guarantees. It was observed that microservices are suitable for elastic scalability and low-complexity operations, while the modular monolith offers a good cost-benefit for balancing mutability and performance. The MVC monolith maintains its competitiveness in systems with lower operational complexity and low data volume. As a limitation, the execution in a controlled environment with a single instance may not reflect the complexity of real distributed infrastructures. For future studies, it is suggested to evaluate the impact of asynchronous message queues on the microservices auditing model, implement automated retention policies for personal data, and replicate the experiment in multi-instance infrastructures.

Bibliographic References

Bass, L.; Clements, P.; Kazman, R. 2012. Software Architecture in Practice. 3ed. Addison-Wesley, Boston, MA, USA.

Brasil. 2018. Lei n. 13.709, de 14 de agosto de 2018. Lei Geral de Proteção de Dados Pessoais. Diário Oficial da União, Brasília, 15 ago. 2018. Seção 1.

Cavoukian, A. 2009. Privacy by Design: the 7 foundational principles. Information and Privacy Commissioner of Ontario, Toronto, ON, Canada.

Cockburn, A. 2005. Hexagonal Architecture. s.n., s.l.

Dragoni, N.; Giallorenzo, S.; Lafuente, A.L.; Mazzara, M.; Montesi, F.; Mustafin, R.; Safina, L. 2017. Microservices: yesterday, today, and tomorrow. In: Mazzara, M.; Meyer, B. (ed.). Present and Ulterior Software Engineering. Springer, Cham, Switzerland. p. 195-216.

Evans, E. 2003. Domain-Driven Design: tackling complexity in the heart of software. Addison-Wesley, Boston, MA, USA.

Forsgren, N.; Humble, J.; Kim, G. 2018. Accelerate: the science of lean software and DevOps. IT Revolution Press, Portland, OR, USA.

ISO. 2019. ISO/IEC 27701:2019 Security techniques: extension to ISO/IEC 27001 and ISO/IEC 27002 for privacy information management requirements and guidelines. International Organization for Standardization, Geneva, Switzerland.

Newman, S. 2021. Building Microservices: designing fine-grained systems. 2ed. O’Reilly Media, Sebastopol, CA, USA.

Nygard, M.T. 2007. Release It!: design and deploy production-ready software. Pragmatic Bookshelf, Raleigh, NC, USA.

Richardson, C. 2018. Microservices Patterns: with examples in Java. Manning Publications, Shelter Island, NY, USA.

Wohlin, C.; Runeson, P.; Höst, M.; Ohlsson, M.C.; Regnell, B.; Wesslén, A. 2012. Experimentation in Software Engineering. Springer, Heidelberg, Germany.

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

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.