October 20, 2026
Performance Evaluation of Microservice-Based Architectures on Scheduling Platforms
Performance Evaluation of Microservice-Based Architectures on Scheduling Platforms
Victor Balbino Machado; Ariel Da Silva Dias
DOI: 10.22167/2675-6528-202602394
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 need to ensure efficiency, stability, and scalability in digital systems under high demand was assessed, focusing on a service and reservation management application. The study aimed to analyze the behavior of a distributed solution developed in C# and .NET, identifying areas for improvement through controlled load and performance experiments. To this end, an application with independent microservices was developed, using synchronous and asynchronous communication, AMQP messaging, Redis cache, a relational database, Docker containers, Kubernetes orchestration, and monitoring with the Elastic Stack. The experimental methodology employed the k6 tool to execute test scenarios, including progressive load, access peaks, sustained load, concurrency, and write operations, as well as comparing communication flows. The results indicated that the implemented structural optimizations reduced latency, optimized the utilization of computational resources, and increased system predictability in critical scenarios. It was concluded that the adoption of caching, asynchronous communication, observability, and selective scalability favored the application’s performance, allowing for an understanding of the benefits and challenges of distributed solutions under high demand.
Keywords: Load; Scalability; Latency; Messaging; Observability.
1. Introduction
In the context of cloud computing, the microservices architecture has been gaining increasing prominence, offering significant advantages over monolithic systems, such as greater scalability, independent deployment, and improved resilience (DRAGONI et al., 2017). Unlike the traditional model, in which the system is developed as a single integrated structure, microservices allow the architecture to be segmented into independent services, each responsible for a specific function. This modular approach provides several benefits, according to Newman (2020), among which flexible scalability, fault resilience and isolation, and agility in development and delivery (Bass et al., 2013) stand out.
On scheduling platforms, these benefits become even more evident. This type of system frequently deals with demand peaks, such as during peak hours for services, and needs to ensure high availability and consistent performance. Distributed architectures, like microservices, offer scalability and agility through modularization and service independence, as highlighted by Newman (2020) and Bass et al. (2013).
Furthermore, strategies such as load balancing and caching play a fundamental role in the system’s scalability and efficiency. According to Kurose and Ross (2021), load balancing distributes requests among different instances, preventing the overload of a single server. Caching frequently accessed information, such as available schedules and service details, significantly reduces the load on the database, improving response time and user experience (Tanenbaum & Van Steen, 2016).
The problem to be solved is how to ensure adequate performance in microservice-based scheduling platforms under high demand. The need for efficient and stable digital systems under high demand, especially in service and reservation management, justifies the exploration of architectures that can optimize functionality and responsiveness.
Given this scenario, this study aims to analyze the performance of microservices on scheduling platforms, through the development of a practical application that exemplifies the challenges and solutions involved. The research focuses on metrics such as response time, elasticity, and availability, proposing improvements to optimize the functioning of these systems in high-demand situations.
2. Material and Methods
The present study employed experimental research (Gil, 2007), focused on the determination of an object and observation of variable effects. The object consisted of developed microservices, with response time and logs as primary variables. This methodology allowed for the investigation of the architecture’s behavior under various load conditions.
For the objective, a microservices-based scheduling application was developed, implemented in C# and the .NET framework version 10.0 (Noronha, 2022). Performance was evaluated in scenarios that simulated normal load, access peaks, and failures.
The architecture was structured in microservices, following the decomposition into independent and loosely coupled services, specialized in business functions (Newman, 2021; Dragoni et al., 2017). This choice aimed at isolated scalability and adaptation to high demand. The microservices developed were: Customer (users), Schedule (appointments), Service (catalog), and Notification (asynchronous sending).
The Customer microservice managed master data, with the others maintaining minimal replicas to reduce synchronous dependencies. Data propagation occurred asynchronously, via AMQP messaging, promoting decoupling and scalability (Newman, 2020). Synchronous communication between services used gRPC (Google, 2023), benefiting from HTTP/2 for multiplexing and lower overhead (Burns et al., 2019).
For data persistence, the SQL Server database was employed, due to its relational nature and consistency requirements. Data caching, for fast access, was implemented with Redis (Cassio, 2023). System monitoring and observability were ensured by the Elastic Stack (ELK), including Elasticsearch, Logstash, and Kibana (Elastic, 2026).
Periodic collection of system metrics (CPU, memory, network) was performed by Metricbeat (Nascimento, 2023). Availability and uptime monitoring of each microservice was guaranteed by Heartbeat (Nascimento, 2023). The infrastructure was based on Docker containers (Docker, 2026), with NGINX as a reverse proxy for routing and load balancing optimization (Cloudflare, [n.d.]; Nginx Inc., 2022).
Container orchestration was managed by Kubernetes (Burns et al., 2019), responsible for automating deployment, horizontal scaling (HPA), lifecycle management, and fault recovery. For the performance experiments, the k6 tool (Grafana Labs, [n.d.]) was used, which allowed simulating multiple virtual users and collecting metrics on APIs and applications.
The test scenarios simulated real scheduling situations, covering: Stress (progressive load), Breakpoint (operational limit), Soak (constant load), Spike (abrupt peaks), Staircase (gradual growth), Concurrent Booking (simultaneous bookings), Write Heavy (intensive write operations), Full E2E (complete flow), Async vs Sync (communication comparison), Isolation (individual tests), Massive (extreme volume), and Availability Burst (concentrated burst on query endpoint).
For the evaluation of the tests, the following variables were used: Throughput (processing capacity); Average response time; Percentiles P90, P95, and P99 (latency); Error (%, failed requests); and Total requests (absolute volume of API calls).
The tests were conducted in multiple evolutionary stages, following the progressive implementation of architectural improvements and bottleneck correction. The applied optimizations covered improvements in database queries, index adjustments, Redis cache refinement, HTTP compression, enhancements in inter-service communication, increased resilience in asynchronous flows, and adjustments in infrastructure and scalability.
3. Results and Discussion
Performance tests were conducted in a microservices architecture, designed to manage services and reservations, considering various load patterns and operational situations. The application was structured into independent services, each responsible for specific functionalities, such as user management, schedule administration, service catalog, and notification issuance. Communication between these services occurred through synchronous calls and asynchronous flows, adapting to the evaluated scenario to ensure system robustness.
The test scenarios were carefully crafted to simulate the most critical points in scheduling systems, including queries for available times, searches for services, and the scheduling process itself. The main metrics considered for evaluation were response time, system unavailability, and the identification of potential overload points. This approach allowed for a comprehensive analysis of the application’s behavior under different stress conditions and continuous use.
For the execution of the experiments, the k6 tool from Grafana Labs was used, which specializes in load, performance, and resilience testing for APIs and distributed applications. This tool enabled the simulation of multiple simultaneous virtual users, allowing for precise measurement of metrics such as response time, error rate, and throughput. The ability to create custom scenarios through scripts was fundamental to replicating real-world usage situations and evaluating the architecture in detail.
The analysis was not restricted solely to response speed, but also sought to identify architectural bottlenecks, the system’s operational limits, and the impact of optimizations implemented throughout development. The scenarios were planned to represent typical scheduling system situations, such as progressive user growth, abrupt access peaks, sustained load for long periods, simultaneous scheduling concurrency, and intensive write operations, in addition to comparing synchronous and asynchronous communication flows.
The evaluation metrics included throughput, which measures the amount of requests processed per second, indicating the system’s capacity under load. The average response time was used to measure the average time the application takes to respond to a request. P90, P95, and P99 percentiles were employed to assess the response time for most users and to identify performance under extreme peaks, respectively. The error rate, expressed as a percentage, indicated the requests that resulted in failures, while the total number of requests represented the absolute volume of API calls during the tests.
The tests were executed in multiple evolutionary stages of the application, accompanying the progressive implementation of architectural improvements and the correction of bottlenecks identified in the initial executions. The optimizations applied included improving database queries, adjusting indexes and relational structures, refining cache usage with Redis, compressing HTTP responses, enhancing inter-service communication, increasing resilience in asynchronous flows, and adjusting infrastructure and horizontal scalability. This approach allowed for comparing the system’s behavior before and after the interventions, evidencing the impact of each architectural decision.
Scenario 1 – Stress
The stress scenario was selected as the main reference to analyze the evolution of the architecture, as it allowed observing the system’s behavior under a progressive and sustained increase in load. This scenario is particularly relevant for scheduling platforms, as it reveals the application’s responsiveness, the architecture’s operational limits, and the direct impact of the optimizations implemented in the different experimental stages. It combines pressure on reading, communication between services, business rule processing, and writing operations, offering a comprehensive view of performance under load.
For the analysis of this scenario, Steps 01, 02, 03, 07, and 08 were prioritized. Step 01 represented the baseline, the initial version of the system without optimizations. Step 02 focused on identifying the main performance bottlenecks. Step 03 incorporated the first structural optimizations. Step 07 corresponded to the main consolidated round after relevant adjustments. Finally, Step 08 included the final refinement with additional cache and compression improvements. The intermediate steps 04, 05, and 06 were excluded from the detailed analysis as they represented duplicate validations, methodological adjustments, or atypical behaviors.
In Stage 01, the system exhibited the worst performance, with an average latency of 24,734.89 milliseconds and a P95 percentile of 60,000.32 milliseconds. This indicated that a significant portion of requests reached the configured timeout limit. The failure rate was 31.95%, and the throughput was only 8.55 requests per second, demonstrating that the initial architecture was not capable of sustaining progressive loads without severe saturation, compromising user experience and operational effectiveness.
Stage 02, focused on diagnosis, revealed a significant improvement in the stress scenario results, with an average latency of 3,276.85 milliseconds, P95 of 9,772.95 milliseconds, and a throughput of 65.66 requests per second. Although there were no structural changes in the code, this stage allowed for a more refined diagnosis, separating the effects of read and write flows and confirming that the main problem was concentrated in the availability endpoint and in the queries related to the scheduling microservice.
With the application of the first structural optimizations in Stage 03, the system’s performance took a significant turn. Average latency dropped to 1,625.10 milliseconds, a reduction of approximately 93.4% compared to the baseline. Throughput increased to 127 requests per second, and P95 was reduced to 5,249.26 milliseconds. These results indicate that improvements in the availability endpoint processing, such as reducing excessive queries and optimizing database access, had a direct and significant impact on the application’s behavior under load.
In Stage 07, which represented the consolidated main round, the system maintained superior performance to the baseline, but showed a partial regression compared to Stage 03. The average latency increased to 1,789.06 milliseconds, the P95 percentile rose to 6,185.37 milliseconds, the failure rate grew to 6.64%, and the throughput dropped to 115.99 requests per second. This data suggests that, although the architecture was more efficient, the initial gains were not fully maintained, revealing performance oscillations typical of distributed environments.
Stage 08, which included final refinement with additional cache and compression adjustments, registered an average latency of 2,024.27 milliseconds, with a P95 of 5,484.65 milliseconds and a throughput of 103.62 requests per second. Although the average latency increased slightly compared to previous stages, the failure rate dropped to 1.31%, the best result among all post-optimization stages. This behavior indicates that the final refinements contributed more to system stability and reliability than to raw latency reduction.
In summary, the results of the stress scenario demonstrate a significant evolution of the architecture, which moved from an initial condition of critical saturation to substantially superior performance after identifying bottlenecks and applying optimizations. The main improvement occurred in the availability flow, especially in the scheduling microservice, where reducing the cost of queries and refining internal processing elevated the platform’s responsiveness. However, performance fluctuations between the final stages reinforce the complexity of optimizing distributed systems.
Scenario 2 – Soak
The soak scenario was employed to evaluate the application’s stability under constant load for a prolonged period. This type of test is crucial for verifying whether the architecture maintains predictable behavior over time, without progressive degradation, excessive latency increase, or abnormal failure rate growth. On scheduling platforms, the soak scenario is especially useful for confirming that the gains achieved with structural optimizations are sustained under continuous usage conditions, resembling a real production environment.
For this analysis, Steps 02, 03, and 07 were prioritized, representing, respectively, the bottleneck identification phase, the first round of structural optimizations, and the consolidated main round. This selection allowed for a clear observation of the system’s evolution in relation to the sustained load, without the need to extend the discussion to later executions that would not alter the main trend observed in the scenario, keeping the focus on the most representative moments of improvement.
In Stage 02, the system presented an average HTTP latency of 1,390.07 milliseconds and a P95 of 3,399.94 milliseconds, with a throughput of 58.70 requests per second. Although the failure rate was low at 0.31%, the volume of bookings created was 5,785, with 22 failures. These results indicate that, in the diagnostic phase, the system was already capable of processing a considerable volume of requests, but with still high latency, which signaled the need for optimizations to improve efficiency.
After the structural optimizations in Step 03, the average HTTP latency dropped to 479.45 milliseconds and the P95 to 933.75 milliseconds, while throughput increased significantly to 140.79 requests per second. The total volume of requests processed was 101,647, with 12,670 bookings created. However, the failure rate rose to 1.57%, and the number of failed bookings increased to 1,597. This stage demonstrated a significant gain in speed and throughput, but also exposed challenges in reliability under continuous load.
In Stage 07, corresponding to the consolidated main round, the average HTTP latency was 428.45 milliseconds and the P95 was 851.25 milliseconds, with a throughput of 152.23 requests per second. The total volume of requests processed reached 109,736, with 12,026 bookings created. However, the failure rate increased to 3.32%, and the number of failed bookings reached 3,640. This data suggests that, although the system maintained high performance in terms of speed and throughput, transactional reliability under sustained load still presented limitations.
The results of the soak scenario indicate that the evolution of the architecture should not be interpreted solely by the failure rate in isolation, but by the set of metrics such as latency, throughput, and total processed volume. Although steps 03 and 07 showed a significant reduction in latency and a substantial increase in throughput, the growth in the number of failed bookings suggests that the increased processing capacity also exposed limitations related to competition between scheduling attempts for the same times. This reinforces the need to consider the effectiveness of operations beyond raw speed.
Scenario 3 – Concurrent Booking
The concurrent booking scenario was employed to evaluate the application’s behavior in the face of multiple simultaneous scheduling attempts. This test is particularly relevant for scheduling platforms, as it allows observation of how the architecture responds when diverse users attempt to book slots at the same time, directly stressing the availability reading, schedule validation, and booking persistence flows. Analysis in this domain requires considering not only the speed of responses but also the capacity to successfully complete booking operations under high concurrency conditions.
For this analysis, Steps 01, 02, 03, and 07 were prioritized, representing the architecture baseline, the bottleneck identification phase, the first round of structural optimizations, and the main consolidated round. This selection allowed us to observe the system’s evolution in one of the most sensitive scenarios of the work, where resource contention and transactional integrity are critical factors for the application’s effectiveness.
In Step 01, the system baseline showed strongly degraded behavior, with an average HTTP latency of 7,171.65 milliseconds, P95 of 52,899.11 milliseconds, and a failure rate of 37.73%. Throughput was only 29.05 requests per second. Only 14 bookings were created against 697 failed bookings, evidencing that the initial architecture was not capable of adequately handling multiple simultaneous scheduling attempts, resulting in an unsatisfactory user experience and low operational effectiveness.
In Stage 02, an improvement in transactional reliability was observed, despite the still high latency. Average HTTP latency dropped to 5,109.36 milliseconds, with a P95 of 15,306.99 milliseconds, and the failure rate was reduced to only 0.10%. Throughput rose to 53.96 requests per second, and the system registered 1,249 bookings created and only 1 failed booking. These results indicate that, at this stage, the application was able to successfully complete scheduling operations in a much higher proportion than the other stages analyzed, even though the raw performance was still far from ideal.
Stage 03, after the initial structural optimizations, demonstrated an expressive shift in speed indicators. Average HTTP latency dropped to 787.29 milliseconds, P95 was reduced to 2,393.82 milliseconds, and throughput rose to 318.31 requests per second, the highest value observed in this scenario. However, this raw performance improvement was not matched by equivalent operational effectiveness: only 57 bookings were created against 7,477 failed bookings, with a failure rate of 33.00%. This suggests that the increased throughput capacity exposed concurrency and contention limitations in the write flow.
In Stage 07, corresponding to the consolidated main round, the system maintained a high level of raw performance, with an average HTTP latency of 870.48 milliseconds, P95 of 2,994.52 milliseconds, and a throughput of 274.53 requests per second. However, the operational result remained critical: only 4 bookings were created and 6,761 bookings failed, with a failure rate of 33.31%. This demonstrates that, although the system was much faster than in the initial stages, high concurrency continued to strongly compromise the effective completion of appointments, indicating that speed did not translate into transactional success.
The results of the concurrent booking scenario reveal that the evolution of the architecture did not occur uniformly between raw performance and effective operation success. Steps 03 and 07 showed a strong reduction in latency and a significant increase in throughput compared to the initial steps, indicating an expressive improvement in processing capacity. However, these same steps exhibited very high volumes of failed bookings, in contrast to Step 02, which, despite higher latency, presented a better result in creation effectiveness. This difference suggests that, with the increase in simultaneous requests, the system more intensely exposed the limitations associated with concurrency in the scheduling flow.
A plausible hypothesis for the observed behavior is the simultaneous dispute for the same set of available time slots, which can lead multiple requests to try to book the same slot at the same time. In this context, a relevant part of the failures may be associated not necessarily with the technical unavailability of the application, but with the natural business competition between scheduling attempts for the same time slots. This reinforces that, for this type of domain, performance analysis needs to consider not only latency and throughput, but also the actual effectiveness of successfully completed operations.
Scenario 4 – Breakpoint
The breakpoint scenario was used to identify the operational limit of the architecture under progressive load growth, i.e., the point beyond which the system ceases to exhibit stable behavior and begins to suffer from a sharp degradation in latency, throughput, and reliability. In scheduling platforms, this scenario is particularly relevant because it allows us to observe the extent to which the application can sustain increasing demand before architectural bottlenecks compromise the user experience and the effectiveness of business operations.
Unlike the stress scenario, which analyzes the general evolution of the architecture in the face of increasing load, the breakpoint focuses the analysis on the transition moment between acceptable operation and operational saturation. In other words, this scenario allows us to evaluate not only whether the system improved over the experimental stages, but also how far these improvements were sufficient to shift the application’s capacity limit, providing insights into the architecture’s resilience and breaking points.
For this analysis, Steps 01, 02, 03, 07, and 08 were prioritized, representing the baseline without optimizations, the bottleneck identification phase, the first round of structural optimizations, the consolidated main round, and the final refinement with additional cache and compression adjustments. This selection allowed for a clear observation of the system’s evolution in relation to its operational breaking point, without unnecessarily broadening the discussion with intermediate executions of lesser analytical relevance, thus maintaining focus on the most critical moments of evolution.
In Stage 01, the system baseline demonstrated strong degradation behavior under load growth. The average HTTP latency was 10,812.30 milliseconds, and the P95 percentile reached 55,915.25 milliseconds, very close to the configured timeout limit. Throughput remained restricted to 18.86 requests per second, with a failure rate of 17.50%. In the business plan, the system registered 213 bookings created and 220 failed bookings, evidencing that, even at the initial breaking point, the architecture could not adequately sustain the progressive increase in demand.
In Step 02, dedicated to bottleneck identification, there was a significant improvement in the application’s overall reliability, although latency remained high. Average HTTP latency dropped to 6,214.36 milliseconds, P95 was reduced to 29,597.27 milliseconds, and the failure rate dropped drastically to 0.69%, with a throughput of 35.25 requests per second. 727 bookings were created and only 21 failed. These results suggest that, even before major structural optimizations, it was already possible to reduce some of the instability observed in the baseline and make the location of predominant bottlenecks more evident, especially in flows associated with the schedule and appointment.
In Stage 03, after the application of the first structural optimizations, there was an expressive shift in level. The average HTTP latency dropped to 1,871.62 milliseconds, representing a reduction of approximately 82.7% compared to the baseline, while the P95 was reduced to 7,928.57 milliseconds. Throughput rose to 106.63 requests per second, the highest value observed among the stages analyzed in this scenario. There was also an expressive increase in the total volume processed, with 22,506 requests and 1,987 bookings created. However, 984 failed bookings were accounted for, indicating that, although the system became much faster and capable of processing more load, the increased throughput began to expose concurrency and contention limitations in the write flow more intensely.
In Stage 07, corresponding to the consolidated main round, the system remained substantially above the baseline, but with a partial regression compared to Stage 03. The average HTTP latency rose to 2,292.03 milliseconds, the P95 increased to 9,014.51 milliseconds, the failure rate reached 7.37%, and the throughput dropped to 87.64 requests per second. From an operational standpoint, there were 1,109 bookings created and 1,367 failed. This behavior shows that the gains obtained in the initial optimizations were not fully maintained in the main round, reinforcing the presence of oscillations typical of distributed environments and indicating that the architecture’s operational limit remained sensitive to concurrent pressure.
In Stage 08, corresponding to the final refinement with additional cache and compression adjustments, a relevant improvement in the balance between raw performance and reliability was observed. The average HTTP latency was 2,187.27 milliseconds, with a P95 of 7,899.05 milliseconds, a failure rate of 2.65%, and a throughput of 91.20 requests per second. Although the throughput did not surpass Stage 03, the system registered 2,100 bookings created and 358 failed bookings, the best operational result among the post-optimization stages in this scenario. This suggests that the final refinements contributed to more stable and effective behavior near the application’s capacity limit.
In general, the results of the breakpoint scenario show that the architecture’s evolution was significant, as the operational degradation point was shifted to substantially higher levels than those observed in the baseline. The comparison between the stages highlights that the implemented optimizations drastically reduced latency, increased throughput, and expanded the total volume of requests processed before the system showed clearer signs of saturation, demonstrating the effectiveness of the architectural interventions.
However, the results also show that the performance improvement was not uniformly accompanied by all indicators. In the stages where the system began to sustain higher throughput, an increase in the volume of failed bookings was also observed, suggesting that the new operational limit was no longer concentrated solely on HTTP latency and began to manifest with greater intensity in the transactional scheduling flow. In other words, as the read path was optimized and the architecture became faster, the concurrency for writing and scheduling appointments began to stand out as a more evident residual limitation.
In this context, Stage 08 can be understood as the configuration with the best balance in the breakpoint scenario. Although it did not present the highest absolute throughput, it was the stage that combined controlled latency, a relatively low failure rate, and a higher quantity of effectively completed bookings. Thus, the breakpoint scenario reinforces that the optimizations adopted throughout the research were effective in expanding the operational limit of the architecture, even though competition in the scheduling flow continues to be a decisive factor for system saturation under higher loads, indicating the need for future approaches to this challenge.
Comparative synthesis of the analyzed scenarios
The joint analysis of the stress, soak, concurrent booking, and breakpoint scenarios allows us to observe that the architecture’s evolution did not occur homogeneously in all evaluated aspects. In general, the results indicate that the optimizations implemented throughout the experimental stages were effective in reducing latency, increasing throughput, and shifting the application’s operational degradation point to higher levels, demonstrating a significant advancement in the system’s response and processing capacity.
In the stress scenario, the most evident transformation of the architecture was observed, with a substantial reduction in average latency, a significant drop in the failure rate, and a significant increase in throughput. This behavior showed that the main system bottlenecks, especially those associated with the availability flow and the scheduling microservice, could be mitigated with the structural optimizations applied in the intermediate and final stages, resulting in a more robust and efficient platform under progressive load.
In the soak scenario, the results indicated that the performance gains were not limited to short executions or transient peaks, but were also maintained under constant load for a prolonged period. There was a relevant reduction in latency and an increase in the total volume processed, suggesting an evolution in the architecture’s scalability. On the other hand, the increase in failed bookings in the faster stages showed that the higher processing capacity also began to more intensely expose limitations associated with concurrency in the scheduling flow, revealing a persistent challenge in managing simultaneous transactions.
This limitation became even more evident in the concurrent booking scenario. Although subsequent steps showed a strong gain in speed and throughput compared to the baseline, operational effectiveness remained compromised under conditions of high contention for the same time slots. This indicates that the architecture clearly evolved in the direction of HTTP reading and processing, but still maintained relevant fragility in the transactional write path, especially when multiple requests attempt to simultaneously book the same schedule slot, requiring more robust mechanisms to ensure the integrity and success of operations.
The breakpoint scenario reinforced this interpretation by showing that the system’s operational limit was shifted to higher levels throughout the stages, but not eliminated. The optimizations allowed for an increase in application capacity before degradation, however, in the phases where the system began to sustain higher throughput, the concurrency on the booking flow became more visible as a limiting factor. Thus, the saturation point ceased to be concentrated solely on raw latency and also began to manifest in the effectiveness of successfully completed operations, indicating a change in the nature of the bottlenecks.
Taken together, the results suggest that the main contribution of the implemented optimizations was the substantial improvement in the scalability and responsiveness of the architecture, especially in read and availability query flows. However, the tests also show that the scheduling flow remained the most sensitive component of the system, particularly in scenarios of intense concurrency. Thus, the research shows that the architecture’s evolution was significant, but also reveals that, in microservice-based scheduling platforms, raw performance and transactional effectiveness do not necessarily evolve at the same rate, requiring differentiated approaches for each aspect.
Possible Areas for Improvement
Based on the results obtained, it is observed that the architecture’s evolution was significant, but there are still relevant possibilities for improvement, especially regarding data storage scalability and the handling of high-concurrency write operations. These areas represent the main residual challenges for ensuring the system’s robustness and efficiency in even higher demand scenarios, according to the test scenarios analysis.
One possibility for evolution consists of expanding the database scalability strategy through a more explicit separation between reading and writing. In this model, the application could operate with a primary instance responsible for writing operations and one or more replicas dedicated to reading operations (MICROSOFT, 2025). This approach would allow offloading queries from the main database, reducing resource contention and improving the performance of more frequent read flows, such as availability and service catalog queries. It is, therefore, a strategy primarily focused on expanding read capacity and analytical throughput.
However, this type of architecture requires proper handling of synchronization between the primary instance and the replicas, as the queried data may present a temporary lag in relation to the most recent writes. Thus, it is a strategy that favors scalability and throughput, but demands attention to the effects of eventual consistency, especially in flows sensitive to concurrency, such as the simultaneous scheduling of appointments (MICROSOFT, 2022). Careful management of this consistency is fundamental to avoid inconsistencies that could compromise the integrity of operations.
Another possible evolution would be the broader adoption of an asynchronous flow for write operations. In this model, instead of immediately persisting certain commands directly to the database during synchronous request processing, the application could publish the write intention to a message queue. From there, a specialized consumer would be responsible for processing the command and effecting persistence in the database (MICROSOFT, 2022). This strategy would reduce the blocking time of the main flow, increase decoupling between components, and allow for greater elasticity in handling write peaks.
For this model to be reliable, it would be necessary to expand or consolidate the idempotency mechanisms already adopted in the solution, ensuring that the same message or command, even under redelivery, retry, or reprocessing, does not result in duplicate persistences or inconsistencies in the scheduling flow. Furthermore, the use of reliable event publishing strategies would be recommended, so that the operation record and its asynchronous propagation occur in a coordinated manner, reducing the risk of inconsistencies between the application, messaging, and database (MICROSOFT, 2022; MICROSOFT, 2026).
In this context, the transactional outbox pattern proves relevant by allowing the business object’s state and its events to be confirmed in the same transactional batch, with subsequent retransmission of messages by a background processor (MICROSOFT, 2022; MICROSOFT, 2026). The use of cache can continue to play an important role in supporting the operation’s transient state, temporarily storing data associated with the command until its definitive confirmation or discard in case of error. Nevertheless, cache should not be treated as a primary mechanism for guaranteeing persistence, but as support for performance and temporary coordination within a more robust asynchronous flow, since caches store temporary copies of data and should not replace the original persistent repository (MICROSOFT, n.d.).
In summary, the results obtained throughout the research indicate that future architectural evolutions can focus on two complementary directions: increasing database capacity through read-oriented replicas and broader decoupling of write operations through asynchronous messaging, with reinforcement of idempotency, controlled eventual consistency, and reliable event propagation mechanisms. These strategies have the potential to reduce the remaining bottlenecks identified in high-concurrency scenarios, especially in the scheduling flow, contributing to an even more robust and scalable architecture.
This work aimed to analyze the performance of a microservice-based scheduling platform under different load patterns, seeking to identify architectural bottlenecks, evaluate the effects of implemented optimizations, and understand the operational limits of the solution in high-demand scenarios. The results obtained demonstrated that the architecture evolved significantly throughout the experimental stages, showing notable improvements in various performance metrics. Compared to the initial baseline, a significant reduction in latency, a substantial increase in throughput, and a relevant improvement in operational stability were observed in scenarios such as stress, soak, and breakpoint. These gains highlight that the applied optimizations, especially on the availability flow, database queries, cache usage, and inter-service communication refinements, were effective in expanding the application’s responsiveness, achieving the study’s main objective.
Performance tests were conducted in a microservices architecture, designed to manage services and reservations, considering various load patterns and operational situations. The application was structured into independent services, each responsible for specific functionalities, such as user management, schedule administration, service catalog, and notification issuance. Communication between these services occurred through synchronous calls and asynchronous flows, adapting to the evaluated scenario to ensure system robustness.
The test scenarios were carefully crafted to simulate the most critical points in scheduling systems, including queries for available times, searches for services, and the scheduling process itself. The main metrics considered for evaluation were response time, system unavailability, and the identification of potential overload points. This approach allowed for a comprehensive analysis of the application’s behavior under different stress conditions and continuous use.
For the execution of the experiments, the k6 tool from Grafana Labs was used, which specializes in load, performance, and resilience testing for APIs and distributed applications. This tool enabled the simulation of multiple simultaneous virtual users, allowing for precise measurement of metrics such as response time, error rate, and throughput. The ability to create custom scenarios through scripts was fundamental to replicating real-world usage situations and evaluating the architecture in detail.
The analysis was not restricted solely to response speed, but also sought to identify architectural bottlenecks, the system’s operational limits, and the impact of optimizations implemented throughout development. The scenarios were planned to represent typical scheduling system situations, such as progressive user growth, abrupt access peaks, sustained load for long periods, simultaneous scheduling concurrency, and intensive write operations, in addition to comparing synchronous and asynchronous communication flows.
The evaluation metrics included throughput, which measures the amount of requests processed per second, indicating the system’s capacity under load. The average response time was used to measure the average time the application takes to respond to a request. P90, P95, and P99 percentiles were employed to assess the response time for most users and to identify performance under extreme peaks, respectively. The error rate, expressed as a percentage, indicated the requests that resulted in failures, while the total number of requests represented the absolute volume of API calls during the tests.
The tests were executed in multiple evolutionary stages of the application, accompanying the progressive implementation of architectural improvements and the correction of bottlenecks identified in the initial executions. The optimizations applied included improving database queries, adjusting indexes and relational structures, refining cache usage with Redis, compressing HTTP responses, enhancing inter-service communication, increasing resilience in asynchronous flows, and adjusting infrastructure and horizontal scalability. This approach allowed for comparing the system’s behavior before and after the interventions, evidencing the impact of each architectural decision.
Scenario 1 – Stress
The stress scenario was selected as the main reference to analyze the evolution of the architecture, as it allowed observing the system’s behavior under a progressive and sustained increase in load. This scenario is particularly relevant for scheduling platforms, as it reveals the application’s responsiveness, the architecture’s operational limits, and the direct impact of the optimizations implemented in the different experimental stages. It combines pressure on reading, communication between services, business rule processing, and writing operations, offering a comprehensive view of performance under load.
For the analysis of this scenario, Steps 01, 02, 03, 07, and 08 were prioritized. Step 01 represented the baseline, the initial version of the system without optimizations. Step 02 focused on identifying the main performance bottlenecks. Step 03 incorporated the first structural optimizations. Step 07 corresponded to the main consolidated round after relevant adjustments. Finally, Step 08 included the final refinement with additional cache and compression improvements. The intermediate steps 04, 05, and 06 were excluded from the detailed analysis as they represented duplicate validations, methodological adjustments, or atypical behaviors.
In Stage 01, the system exhibited the worst performance, with an average latency of 24,734.89 milliseconds and a P95 percentile of 60,000.32 milliseconds. This indicated that a significant portion of requests reached the configured timeout limit. The failure rate was 31.95%, and the throughput was only 8.55 requests per second, demonstrating that the initial architecture was not capable of sustaining progressive loads without severe saturation, compromising user experience and operational effectiveness.
Stage 02, focused on diagnosis, revealed a significant improvement in the stress scenario results, with an average latency of 3,276.85 milliseconds, P95 of 9,772.95 milliseconds, and a throughput of 65.66 requests per second. Although there were no structural changes in the code, this stage allowed for a more refined diagnosis, separating the effects of read and write flows and confirming that the main problem was concentrated in the availability endpoint and in the queries related to the scheduling microservice.
With the application of the first structural optimizations in Stage 03, the system’s performance took a significant turn. Average latency dropped to 1,625.10 milliseconds, a reduction of approximately 93.4% compared to the baseline. Throughput increased to 127 requests per second, and P95 was reduced to 5,249.26 milliseconds. These results indicate that improvements in the availability endpoint processing, such as reducing excessive queries and optimizing database access, had a direct and significant impact on the application’s behavior under load.
In Stage 07, which represented the consolidated main round, the system maintained superior performance to the baseline, but showed a partial regression compared to Stage 03. The average latency increased to 1,789.06 milliseconds, the P95 percentile rose to 6,185.37 milliseconds, the failure rate grew to 6.64%, and the throughput dropped to 115.99 requests per second. This data suggests that, although the architecture was more efficient, the initial gains were not fully maintained, revealing performance oscillations typical of distributed environments.
Stage 08, which included final refinement with additional cache and compression adjustments, registered an average latency of 2,024.27 milliseconds, with a P95 of 5,484.65 milliseconds and a throughput of 103.62 requests per second. Although the average latency increased slightly compared to previous stages, the failure rate dropped to 1.31%, the best result among all post-optimization stages. This behavior indicates that the final refinements contributed more to system stability and reliability than to raw latency reduction.
In summary, the results of the stress scenario demonstrate a significant evolution of the architecture, which moved from an initial condition of critical saturation to substantially superior performance after identifying bottlenecks and applying optimizations. The main improvement occurred in the availability flow, especially in the scheduling microservice, where reducing the cost of queries and refining internal processing elevated the platform’s responsiveness. However, performance fluctuations between the final stages reinforce the complexity of optimizing distributed systems.
Scenario 2 – Soak
The soak scenario was employed to evaluate the application’s stability under constant load for a prolonged period. This type of test is crucial for verifying whether the architecture maintains predictable behavior over time, without progressive degradation, excessive latency increase, or abnormal failure rate growth. On scheduling platforms, the soak scenario is especially useful for confirming that the gains achieved with structural optimizations are sustained under continuous usage conditions, resembling a real production environment.
For this analysis, Steps 02, 03, and 07 were prioritized, representing, respectively, the bottleneck identification phase, the first round of structural optimizations, and the consolidated main round. This selection allowed for a clear observation of the system’s evolution in relation to the sustained load, without the need to extend the discussion to later executions that would not alter the main trend observed in the scenario, keeping the focus on the most representative moments of improvement.
In Stage 02, the system presented an average HTTP latency of 1,390.07 milliseconds and a P95 of 3,399.94 milliseconds, with a throughput of 58.70 requests per second. Although the failure rate was low at 0.31%, the volume of bookings created was 5,785, with 22 failures. These results indicate that, in the diagnostic phase, the system was already capable of processing a considerable volume of requests, but with still high latency, which signaled the need for optimizations to improve efficiency.
After the structural optimizations in Step 03, the average HTTP latency dropped to 479.45 milliseconds and the P95 to 933.75 milliseconds, while throughput increased significantly to 140.79 requests per second. The total volume of requests processed was 101,647, with 12,670 bookings created. However, the failure rate rose to 1.57%, and the number of failed bookings increased to 1,597. This stage demonstrated a significant gain in speed and throughput, but also exposed challenges in reliability under continuous load.
In Stage 07, corresponding to the consolidated main round, the average HTTP latency was 428.45 milliseconds and the P95 was 851.25 milliseconds, with a throughput of 152.23 requests per second. The total volume of requests processed reached 109,736, with 12,026 bookings created. However, the failure rate increased to 3.32%, and the number of failed bookings reached 3,640. This data suggests that, although the system maintained high performance in terms of speed and throughput, transactional reliability under sustained load still presented limitations.
The results of the soak scenario indicate that the evolution of the architecture should not be interpreted solely by the failure rate in isolation, but by the set of metrics such as latency, throughput, and total processed volume. Although steps 03 and 07 showed a significant reduction in latency and a substantial increase in throughput, the growth in the number of failed bookings suggests that the increased processing capacity also exposed limitations related to competition between scheduling attempts for the same times. This reinforces the need to consider the effectiveness of operations beyond raw speed.
Scenario 3 – Concurrent Booking
The concurrent booking scenario was employed to evaluate the application’s behavior in the face of multiple simultaneous scheduling attempts. This test is particularly relevant for scheduling platforms, as it allows observation of how the architecture responds when diverse users attempt to book slots at the same time, directly stressing the availability reading, schedule validation, and booking persistence flows. Analysis in this domain requires considering not only the speed of responses but also the capacity to successfully complete booking operations under high concurrency conditions.
For this analysis, Steps 01, 02, 03, and 07 were prioritized, representing the architecture baseline, the bottleneck identification phase, the first round of structural optimizations, and the main consolidated round. This selection allowed us to observe the system’s evolution in one of the most sensitive scenarios of the work, where resource contention and transactional integrity are critical factors for the application’s effectiveness.
In Step 01, the system baseline showed strongly degraded behavior, with an average HTTP latency of 7,171.65 milliseconds, P95 of 52,899.11 milliseconds, and a failure rate of 37.73%. Throughput was only 29.05 requests per second. Only 14 bookings were created against 697 failed bookings, evidencing that the initial architecture was not capable of adequately handling multiple simultaneous scheduling attempts, resulting in an unsatisfactory user experience and low operational effectiveness.
In Stage 02, an improvement in transactional reliability was observed, despite the still high latency. Average HTTP latency dropped to 5,109.36 milliseconds, with a P95 of 15,306.99 milliseconds, and the failure rate was reduced to only 0.10%. Throughput rose to 53.96 requests per second, and the system registered 1,249 bookings created and only 1 failed booking. These results indicate that, at this stage, the application was able to successfully complete scheduling operations in a much higher proportion than the other stages analyzed, even though the raw performance was still far from ideal.
Stage 03, after the initial structural optimizations, demonstrated an expressive shift in speed indicators. Average HTTP latency dropped to 787.29 milliseconds, P95 was reduced to 2,393.82 milliseconds, and throughput rose to 318.31 requests per second, the highest value observed in this scenario. However, this raw performance improvement was not matched by equivalent operational effectiveness: only 57 bookings were created against 7,477 failed bookings, with a failure rate of 33.00%. This suggests that the increased throughput capacity exposed concurrency and contention limitations in the write flow.
In Stage 07, corresponding to the consolidated main round, the system maintained a high level of raw performance, with an average HTTP latency of 870.48 milliseconds, P95 of 2,994.52 milliseconds, and a throughput of 274.53 requests per second. However, the operational result remained critical: only 4 bookings were created and 6,761 bookings failed, with a failure rate of 33.31%. This demonstrates that, although the system was much faster than in the initial stages, high concurrency continued to strongly compromise the effective completion of appointments, indicating that speed did not translate into transactional success.
The results of the concurrent booking scenario reveal that the evolution of the architecture did not occur uniformly between raw performance and effective operation success. Steps 03 and 07 showed a strong reduction in latency and a significant increase in throughput compared to the initial steps, indicating an expressive improvement in processing capacity. However, these same steps exhibited very high volumes of failed bookings, in contrast to Step 02, which, despite higher latency, presented a better result in creation effectiveness. This difference suggests that, with the increase in simultaneous requests, the system more intensely exposed the limitations associated with concurrency in the scheduling flow.
A plausible hypothesis for the observed behavior is the simultaneous dispute for the same set of available time slots, which can lead multiple requests to try to book the same slot at the same time. In this context, a relevant part of the failures may be associated not necessarily with the technical unavailability of the application, but with the natural business competition between scheduling attempts for the same time slots. This reinforces that, for this type of domain, performance analysis needs to consider not only latency and throughput, but also the actual effectiveness of successfully completed operations.
Scenario 4 – Breakpoint
The breakpoint scenario was used to identify the operational limit of the architecture under progressive load growth, i.e., the point beyond which the system ceases to exhibit stable behavior and begins to suffer from a sharp degradation in latency, throughput, and reliability. In scheduling platforms, this scenario is particularly relevant because it allows us to observe the extent to which the application can sustain increasing demand before architectural bottlenecks compromise the user experience and the effectiveness of business operations.
Unlike the stress scenario, which analyzes the general evolution of the architecture in the face of increasing load, the breakpoint focuses the analysis on the transition moment between acceptable operation and operational saturation. In other words, this scenario allows us to evaluate not only whether the system improved over the experimental stages, but also how far these improvements were sufficient to shift the application’s capacity limit, providing insights into the architecture’s resilience and breaking points.
For this analysis, Steps 01, 02, 03, 07, and 08 were prioritized, representing the baseline without optimizations, the bottleneck identification phase, the first round of structural optimizations, the consolidated main round, and the final refinement with additional cache and compression adjustments. This selection allowed for a clear observation of the system’s evolution in relation to its operational breaking point, without unnecessarily broadening the discussion with intermediate executions of lesser analytical relevance, thus maintaining focus on the most critical moments of evolution.
In Stage 01, the system baseline demonstrated strong degradation behavior under load growth. The average HTTP latency was 10,812.30 milliseconds, and the P95 percentile reached 55,915.25 milliseconds, very close to the configured timeout limit. Throughput remained restricted to 18.86 requests per second, with a failure rate of 17.50%. In the business plan, the system registered 213 bookings created and 220 failed bookings, evidencing that, even at the initial breaking point, the architecture could not adequately sustain the progressive increase in demand.
In Step 02, dedicated to bottleneck identification, there was a significant improvement in the application’s overall reliability, although latency remained high. Average HTTP latency dropped to 6,214.36 milliseconds, P95 was reduced to 29,597.27 milliseconds, and the failure rate dropped drastically to 0.69%, with a throughput of 35.25 requests per second. 727 bookings were created and only 21 failed. These results suggest that, even before major structural optimizations, it was already possible to reduce some of the instability observed in the baseline and make the location of predominant bottlenecks more evident, especially in flows associated with the schedule and appointment.
In Stage 03, after the application of the first structural optimizations, there was an expressive shift in level. The average HTTP latency dropped to 1,871.62 milliseconds, representing a reduction of approximately 82.7% compared to the baseline, while the P95 was reduced to 7,928.57 milliseconds. Throughput rose to 106.63 requests per second, the highest value observed among the stages analyzed in this scenario. There was also an expressive increase in the total volume processed, with 22,506 requests and 1,987 bookings created. However, 984 failed bookings were accounted for, indicating that, although the system became much faster and capable of processing more load, the increased throughput began to expose concurrency and contention limitations in the write flow more intensely.
In Stage 07, corresponding to the consolidated main round, the system remained substantially above the baseline, but with a partial regression compared to Stage 03. The average HTTP latency rose to 2,292.03 milliseconds, the P95 increased to 9,014.51 milliseconds, the failure rate reached 7.37%, and the throughput dropped to 87.64 requests per second. From an operational standpoint, there were 1,109 bookings created and 1,367 failed. This behavior shows that the gains obtained in the initial optimizations were not fully maintained in the main round, reinforcing the presence of oscillations typical of distributed environments and indicating that the architecture’s operational limit remained sensitive to concurrent pressure.
In Stage 08, corresponding to the final refinement with additional cache and compression adjustments, a relevant improvement in the balance between raw performance and reliability was observed. The average HTTP latency was 2,187.27 milliseconds, with a P95 of 7,899.05 milliseconds, a failure rate of 2.65%, and a throughput of 91.20 requests per second. Although the throughput did not surpass Stage 03, the system registered 2,100 bookings created and 358 failed bookings, the best operational result among the post-optimization stages in this scenario. This suggests that the final refinements contributed to more stable and effective behavior near the application’s capacity limit.
In general, the results of the breakpoint scenario show that the architecture’s evolution was significant, as the operational degradation point was shifted to substantially higher levels than those observed in the baseline. The comparison between the stages highlights that the implemented optimizations drastically reduced latency, increased throughput, and expanded the total volume of requests processed before the system showed clearer signs of saturation, demonstrating the effectiveness of the architectural interventions.
However, the results also show that the performance improvement was not uniformly accompanied by all indicators. In the stages where the system began to sustain higher throughput, an increase in the volume of failed bookings was also observed, suggesting that the new operational limit was no longer concentrated solely on HTTP latency and began to manifest with greater intensity in the transactional scheduling flow. In other words, as the read path was optimized and the architecture became faster, the concurrency for writing and scheduling appointments began to stand out as a more evident residual limitation.
In this context, Stage 08 can be understood as the configuration with the best balance in the breakpoint scenario. Although it did not present the highest absolute throughput, it was the stage that combined controlled latency, a relatively low failure rate, and a higher quantity of effectively completed bookings. Thus, the breakpoint scenario reinforces that the optimizations adopted throughout the research were effective in expanding the operational limit of the architecture, even though competition in the scheduling flow continues to be a decisive factor for system saturation under higher loads, indicating the need for future approaches to this challenge.
Comparative synthesis of the analyzed scenarios
The joint analysis of the stress, soak, concurrent booking, and breakpoint scenarios allows us to observe that the architecture’s evolution did not occur homogeneously in all evaluated aspects. In general, the results indicate that the optimizations implemented throughout the experimental stages were effective in reducing latency, increasing throughput, and shifting the application’s operational degradation point to higher levels, demonstrating a significant advancement in the system’s response and processing capacity.
In the stress scenario, the most evident transformation of the architecture was observed, with a substantial reduction in average latency, a significant drop in the failure rate, and a significant increase in throughput. This behavior showed that the main system bottlenecks, especially those associated with the availability flow and the scheduling microservice, could be mitigated with the structural optimizations applied in the intermediate and final stages, resulting in a more robust and efficient platform under progressive load.
In the soak scenario, the results indicated that the performance gains were not limited to short executions or transient peaks, but were also maintained under constant load for a prolonged period. There was a relevant reduction in latency and an increase in the total volume processed, suggesting an evolution in the architecture’s scalability. On the other hand, the increase in failed bookings in the faster stages showed that the higher processing capacity also began to more intensely expose limitations associated with concurrency in the scheduling flow, revealing a persistent challenge in managing simultaneous transactions.
This limitation became even more evident in the concurrent booking scenario. Although subsequent steps showed a strong gain in speed and throughput compared to the baseline, operational effectiveness remained compromised under conditions of high contention for the same time slots. This indicates that the architecture clearly evolved in the direction of HTTP reading and processing, but still maintained relevant fragility in the transactional write path, especially when multiple requests attempt to simultaneously book the same schedule slot, requiring more robust mechanisms to ensure the integrity and success of operations.
The breakpoint scenario reinforced this interpretation by showing that the system’s operational limit was shifted to higher levels throughout the stages, but not eliminated. The optimizations allowed for an increase in application capacity before degradation, however, in the phases where the system began to sustain higher throughput, the concurrency on the booking flow became more visible as a limiting factor. Thus, the saturation point ceased to be concentrated solely on raw latency and also began to manifest in the effectiveness of successfully completed operations, indicating a change in the nature of the bottlenecks.
Taken together, the results suggest that the main contribution of the implemented optimizations was the substantial improvement in the scalability and responsiveness of the architecture, especially in read and availability query flows. However, the tests also show that the scheduling flow remained the most sensitive component of the system, particularly in scenarios of intense concurrency. Thus, the research shows that the architecture’s evolution was significant, but also reveals that, in microservice-based scheduling platforms, raw performance and transactional effectiveness do not necessarily evolve at the same rate, requiring differentiated approaches for each aspect.
Possible Areas for Improvement
Based on the results obtained, it is observed that the architecture’s evolution was significant, but there are still relevant possibilities for improvement, especially regarding data storage scalability and the handling of high-concurrency write operations. These areas represent the main residual challenges for ensuring the system’s robustness and efficiency in even higher demand scenarios, according to the test scenarios analysis.
One possibility for evolution consists of expanding the database scalability strategy through a more explicit separation between reading and writing. In this model, the application could operate with a primary instance responsible for writing operations and one or more replicas dedicated to reading operations (MICROSOFT, 2025). This approach would allow offloading queries from the main database, reducing resource contention and improving the performance of more frequent read flows, such as availability and service catalog queries. It is, therefore, a strategy primarily focused on expanding read capacity and analytical throughput.
However, this type of architecture requires proper handling of synchronization between the primary instance and the replicas, as the queried data may present a temporary lag in relation to the most recent writes. Thus, it is a strategy that favors scalability and throughput, but demands attention to the effects of eventual consistency, especially in flows sensitive to concurrency, such as the simultaneous scheduling of appointments (MICROSOFT, 2022). Careful management of this consistency is fundamental to avoid inconsistencies that could compromise the integrity of operations.
Another possible evolution would be the broader adoption of an asynchronous flow for write operations. In this model, instead of immediately persisting certain commands directly to the database during synchronous request processing, the application could publish the write intention to a message queue. From there, a specialized consumer would be responsible for processing the command and effecting persistence in the database (MICROSOFT, 2022). This strategy would reduce the blocking time of the main flow, increase decoupling between components, and allow for greater elasticity in handling write peaks.
For this model to be reliable, it would be necessary to expand or consolidate the idempotency mechanisms already adopted in the solution, ensuring that the same message or command, even under redelivery, retry, or reprocessing, does not result in duplicate persistences or inconsistencies in the scheduling flow. Furthermore, the use of reliable event publishing strategies would be recommended, so that the operation record and its asynchronous propagation occur in a coordinated manner, reducing the risk of inconsistencies between the application, messaging, and database (MICROSOFT, 2022; MICROSOFT, 2026).
In this context, the transactional outbox pattern proves relevant by allowing the business object’s state and its events to be confirmed in the same transactional batch, with subsequent retransmission of messages by a background processor (MICROSOFT, 2022; MICROSOFT, 2026). The use of cache can continue to play an important role in supporting the operation’s transient state, temporarily storing data associated with the command until its definitive confirmation or discard in case of error. Nevertheless, cache should not be treated as a primary mechanism for guaranteeing persistence, but as support for performance and temporary coordination within a more robust asynchronous flow, since caches store temporary copies of data and should not replace the original persistent repository (MICROSOFT, n.d.).
In summary, the results obtained throughout the research indicate that future architectural evolutions can focus on two complementary directions: increasing database capacity through read-oriented replicas and broader decoupling of write operations through asynchronous messaging, with reinforcement of idempotency, controlled eventual consistency, and reliable event propagation mechanisms. These strategies have the potential to reduce the remaining bottlenecks identified in high-concurrency scenarios, especially in the scheduling flow, contributing to an even more robust and scalable architecture.
This work aimed to analyze the performance of a microservice-based scheduling platform under different load patterns, seeking to identify architectural bottlenecks, evaluate the effects of implemented optimizations, and understand the operational limits of the solution in high-demand scenarios. The results obtained demonstrated that the architecture evolved significantly throughout the experimental stages, showing notable improvements in various performance metrics. Compared to the initial baseline, a significant reduction in latency, a substantial increase in throughput, and a relevant improvement in operational stability were observed in scenarios such as stress, soak, and breakpoint. These gains highlight that the applied optimizations, especially on the availability flow, database queries, cache usage, and inter-service communication refinements, were effective in expanding the application’s responsiveness, achieving the study’s main objective.
4. Conclusion
This work aimed to analyze the performance of a microservices-based scheduling platform under different load patterns, seeking to identify architectural bottlenecks, evaluate the effects of implemented optimizations, and understand the operational limits of the solution in high-demand scenarios. It was found that the architecture evolved significantly throughout the experimental stages, with a significant reduction in latency, a substantial increase in throughput, and a relevant improvement in operational stability in scenarios such as stress, soak, and breakpoint. These findings indicated that the applied optimizations, especially regarding the availability flow, database queries, cache usage, and inter-service communication refinements, were effective in enhancing the application’s responsiveness. The main contribution of the study lies in the practical demonstration that substantial improvement in the architecture’s scalability and responsiveness, particularly in read and availability query flows, is achievable through strategic architectural interventions in distributed systems.
However, the experiments also showed that the system’s evolution did not occur uniformly across all indicators, revealing a persistent limitation in the scheduling flow under high concurrency. In concurrent booking scenarios, a significant increase in failed bookings was observed, even with reduced latency and high throughput, suggesting that the increased processing capacity intensely exposed the transactional limitations associated with simultaneous time slot contention. For future studies, it is suggested to expand the database scalability strategy by explicitly separating read and write operations, paying attention to eventual consistency. Additionally, wider adoption of an asynchronous flow for write operations is recommended, reinforcing idempotency mechanisms and reliable event publishing, such as the transactional outbox pattern, to mitigate remaining bottlenecks in the scheduling flow and ensure greater transactional effectiveness.
Bibliographic References
BASS, Len; CLEMENTS, Paul; KAZMAN, Rick. Software Architecture in Practice. 3. ed. Upper Saddle River, NJ: Addison-Wesley, 2013.
DRAGONI, Nicola et al. Microservices: Yesterday, Today, and Tomorrow. arXiv, 2017. Disponível em: https://arxiv.org/abs/1606.04036. Acesso em: 30 mar. 2025.
GIL, A. C. Como elaborar projetos de pesquisa. 4. ed. São Paulo: Atlas, 2007.
KUROSE, J. F.; ROSS, K. W. Redes de Computadores e a Internet: uma abordagem top-down. 8. ed. São Paulo: Pearson, 2021.
NEWMAN, Sam. Building Microservices: Designing Fine-Grained Systems. 2. ed. Sebastopol: O’Reilly Media, 2021.
NORONHA, Cristiano. O que é um framework. balta.io, [S.I.], [s.d.]. Disponível em: https://balta.io/blog/o-que-e-um-framework. Acesso em: 23 abr.
TANENBAUM, A. S.; VAN STEEN, M. Sistemas Distribuídos: Princípios e Paradigmas. 3. ed. São Paulo: Pearson, 2016.
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