October 26, 2026
Performance of Communication Protocols in Microservices under High Demand
Arthur Juan de Lima Ramalho; Heinrich Da Solidade Santos
DOI: 10.22167/2675-6528-202600588
Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.
Summary
The microservices architecture has been widely adopted in distributed systems to meet the need for scalability, flexibility, and resilience in high-demand applications, such as financial systems. With the objective of comparatively evaluating the performance of different communication paradigms between microservices, this study specifically analyzed REST, gRPC, and AMQP-based messaging, using RabbitMQ. To this end, five independent services were implemented in Node.js, organized in a chain architecture, with simulated processing of 50 ms per stage. The experiments were conducted with the “k6” tool, varying the number of virtual users, concurrency levels, and the volume of data transmitted, and metrics of throughput, latency (average and P95), CPU and memory consumption, as well as failure rates were collected. The results indicated that, among synchronous models, gRPC showed better performance than REST, with lower latency and higher throughput. Asynchronous communication demonstrated greater efficiency in high-load scenarios, with superior request absorption capacity and better overall performance, albeit with higher resource consumption without proportional loss of efficiency. It was concluded that the choice of communication paradigm depends on the system requirements, with messaging being more suitable for high load and synchronous approaches relevant for scenarios requiring immediate response.
Keywords: architecture; efficiency; latency; messaging.
1. Introduction
The microservices architecture represents one of the most prominent approaches in the development of contemporary distributed systems. Its widespread adoption is driven by the growing need for scalability, flexibility, and resilience in complex applications, especially those operating under high demand, such as financial systems (Newman, 2019; Richardson, 2018). This architectural model is characterized by the fragmentation of a monolithic system into small, autonomous, and independent services, which communicate through well-defined interfaces. This modularity facilitates continuous maintenance and isolated evolution of each component, promoting agility and efficiency in the software development cycle (Newman, 2019). The increasing adherence to this architecture in corporate environments has demonstrated significant gains in scalability and a notable reduction in operational costs, as evidenced by several studies (Villamizar et al., 2015).
Despite the inherent benefits of decomposing systems into microservices, this approach introduces new complex challenges, particularly regarding communication, coordination, and data consistency among services. The careful selection of integration technologies and patterns therefore becomes a critical factor for the successful implementation of a microservices architecture (Richardson, 2018; Kleppmann, 2017; Villamizar et al., 2015). Among the most common approaches for inter-service communication, synchronous and asynchronous protocols stand out, each with distinct characteristics that directly influence the system’s performance and robustness.
The Representational State Transfer (REST) architectural style, which is based on the Hypertext Transfer Protocol (HTTP), is widely disseminated due to its simplicity and interoperability. RESTful communication involves the transfer of messages, typically in formats such as XML and JSON, via Uniform Resource Identifiers (URLs) that expose resources. The fixed operations of create, read, update, and delete (POST, GET, PUT, DELETE) are used to interact with these resources. Implemented predominantly over HTTP/1.1, the REST model operates synchronously in the request/response pattern, where each request is treated independently, even when persistent connections are employed (Sommerville, 2020).
In contrast, Google Remote Procedure Call (gRPC) is a remote procedure call (RPC) framework that, although it also operates synchronously in the request/response model via HTTP, differs by its reliance on HTTP/2. Instead of text messages, gRPC uses “protocol buffers” to serialize structured data in binary format, which contributes to more efficient communication. gRPC establishes “channels” for connections between URLs, allowing the reuse of these connections for additional calls, optimizing performance and reducing connection overhead (GRPC, 2018).
A third approach is the Advanced Message Queuing Protocol (AMQP), a queue-based messaging protocol that stands out for its asynchronous communication. In this model, producers send messages to a queue without needing to wait for an immediate response. Consumers, in turn, receive and process messages from the queue in a decoupled manner (Vinoski, 2006). Messaging systems like RabbitMQ and Apache Kafka are prominent examples that enable asynchronous integration and greater decoupling between services, conferring flexibility and resilience to the system (Kleppmann, 2017; Niswar et al., 2024).
In high-demand systems, such as those of a financial and instant payment nature, the challenges associated with inter-service communication intensify. Such environments require low latency, high reliability, traceability, and fault tolerance, as each transaction must be processed in real-time and with complete integrity (Dhandapani, 2025; Samineni, 2025). The microservices architecture, while an effective solution for these domains due to its capacity for horizontal scalability and fault isolation (Garg and Khan, 2024), the choice of communication paradigm can drastically impact the performance and consistency of operations. This directly affects critical metrics such as response time and processing rate, making the decision about which protocol to use a crucial point for system efficiency.
Given the complexity and criticality of choosing the communication paradigm in high-demand microservice environments, an in-depth comparative evaluation of the available options becomes essential. Understanding the operational characteristics of each protocol and how they manifest under different load conditions is fundamental for making informed architectural decisions. Thus, the objective of this experimental research is to comparatively evaluate the performance of three inter-service communication paradigms — HTTP/REST, gRPC, and RabbitMQ — in a processing architecture composed of multiple homogeneous stages, subjected to different levels of concurrency, payload profiles, and execution environments, seeking to identify how the operational characteristics of each paradigm influence latency metrics, throughput, and behavior under saturation.
2. Material and Methods
This research was characterized as an experimental study of a quantitative nature, with the objective of comparatively evaluating the performance of different inter-service communication paradigms in a high-demand microservices architecture. The methodology was designed to investigate how the operational characteristics of HTTP/REST, gRPC, and AMQP (using RabbitMQ) influence latency metrics, throughput, and behavior under saturation, as proposed in the introduction.
For the experiments, five independent services were implemented, developed in Node.js and orchestrated with Docker. These services were structured in a chain architecture, simulating a transaction processing pipeline. Each stage of the pipeline was configured to introduce a fixed lag time of 50 milliseconds [ms], totaling a theoretical minimum response time of approximately 200 ms for a complete request (Wang et al., 2025).
The simulated payment architecture consisted of an entry service for receiving requests, followed by a validation service, an anti-fraud detection service, an authorizer, and finally, a settlement service (Yadlapalli, 2025). This pipeline configuration aimed to amplify the performance differences between the analyzed protocols, accumulating small variations in communication time over multiple distributed calls (Kleppmann, 2017).
The three communication models evaluated were implemented using specific libraries: for REST, Express was employed; for gRPC, grpc/grpc-js was used; and for AMQP, with RabbitMQ, amqplib was employed. In the scenarios with REST and gRPC, the input service was triggered directly via HTTP and gRPC, respectively, with subsequent calls between services following the same protocol synchronously.
In the case of messaging with RabbitMQ, the initial request to the entry service was made via HTTP, due to the absence of native support from the testing tool for direct sending of AMQP messages. Subsequent communications between the services occurred asynchronously, through queues managed by RabbitMQ (Niswar et al, 2024; Vinoski, 2006).
Performance tests were conducted using the open-source tool k6 (Grafana, 2025; Chapman and Holmes; 2023), under a closed workload model. In this model, each virtual user waited for the response of a request before initiating the next one, which allowed the overall system latency to influence the workload behavior.
The independent variables manipulated included the number of virtual users (“virtual users” [VUs]), the concurrency levels per stage, and the volume of data transmitted. The concurrency levels per stage were defined as 50, 100, 150, and 10,000 simultaneous operations per service, with the latter value being an approximation of a scenario without practical limitation.
Dois tamanhos distintos de carga útil (payload) foram empregados para avaliar o impacto do volume de informação: um conjunto reduzido de 23 bytes e outro de maior volume, com 32 kiloBytes [KiB] (aproximadamente 32.000 bytes). Essa variação permitiu analisar as diferenças nos mecanismos de serialização e transporte dos protocolos (Çiftçi e Çiloğlugil, 2025).
During the experiments, several performance metrics were collected, including throughput (completed requests per second), latency (average and P95 percentile), CPU utilization, memory consumption, and failure rates. A request was considered failed if its response time exceeded 1000 milliseconds.
Each experiment was performed five times to ensure data reliability. The average of the obtained results was considered, and discrepant values were removed to reduce occasional variations (Barbetta et al, 2010). The tests were organized in an experimental matrix, systematically varying the load and data volume conditions.
The analysis and visualization of the results were performed with the aid of the Python programming language, using the NumPy, Matplotlib, Pandas, and Seaborn libraries. The complete source code for the implementation of the services and tests is publicly available in an online repository, accessible at https://github.com/Arth-Juan/inter-service-communication-benchmark.
3. Results and Discussion
The research results revealed a comparative overview of the performance of REST, gRPC, and AMQP-based messaging paradigms, using RabbitMQ, in a high-demand microservices architecture. In general, asynchronous communication with RabbitMQ demonstrated superior request processing capability, while gRPC stood out among synchronous approaches, consistently outperforming REST in various performance metrics. These findings are crucial for decision-making in distributed systems projects that require high performance and resilience, aligning with the central objective of this study.
The analysis of the processing rate, which measures the number of complete requests per second, indicated that communication based on RabbitMQ, using the AMQP protocol, presented the best performance at all evaluated concurrency levels. This behavior suggests that the asynchronous nature and queuing mechanism of RabbitMQ allow for more efficient absorption and processing of a high volume of requests. In contrast, among synchronous protocols, gRPC demonstrated superior performance to REST, maintaining a consistently higher processing rate in all experimental scenarios.
Regarding latency, specifically at the 95th percentile (P95), an inversely proportional relationship to the processing rate was observed, confirming the general performance pattern. The REST protocol exhibited the highest latency values, which is indicative of its lower efficiency under load. This difference can be attributed to the characteristics of HTTP/1.1, predominantly used by REST, which does not optimize connection reuse as effectively as HTTP/2, employed by gRPC. HTTP/2’s ability to allow multiplexing and better utilization of established connections gives gRPC a significant advantage, making REST more susceptible to increased latency under high demand conditions (Muniyandi, 2025).
The comparison between gRPC and RabbitMQ in concurrency scenarios revealed that, under a limit of 50 simultaneous requests per service, the performance of both protocols was quite similar. However, as the concurrency limit was increased, RabbitMQ began to show notably superior performance. This phenomenon is explained by the queuing mechanism of asynchronous communication, where the additional cost of sending, storing, and consuming messages is amortized over the processing. The ability to queue new messages while others are being processed allows for better resource utilization and a reduction in the immediate impact of communication latency, an intrinsic characteristic of asynchronous approaches in high-load scenarios (Muniyandi, 2025).
The analysis of the average failure percentage revealed a distinct behavior in low concurrency scenarios. Below the limit of 50 simultaneous requests per service, all protocols presented a high failure rate when subjected to 1000 virtual users. This result is a direct consequence of the closed load model adopted, in which each virtual user waits for the completion of a request before initiating the next. The concurrency limitation imposed on the services, combined with the simulated processing time of 50 milliseconds per stage, generated an accumulation of requests that exceeded the simultaneous processing capacity, resulting in response time failures.
In contrast to the low competition scenario, in the other evaluated competition levels, only REST presented a significant occurrence of failures. gRPC and RabbitMQ-based communication, in turn, maintained irrelevant error rates, demonstrating greater robustness and capacity to handle the workload without compromising request delivery. This finding reinforces REST’s lower resilience in high-demand environments, where saturation propagation to the client occurs more directly, unlike approaches that use queuing or connection optimization.
The memory consumption associated with RabbitMQ-based communication was higher in scenarios involving the transmission of 32 KiB data, at all stages of the experiment. This increase in resource consumption can be attributed to the message queuing capability, which requires temporary storage of multiple requests in the system queues. However, this “backpressure” mechanism is fundamental for reducing the load pressure on consumer services, allowing requests to be processed more gradually and in a controlled manner. This decoupling between message producers and consumers contributes to increased processing rates and reduced latency, as observed in the analyzed scenarios (Newman, 2019; Kleppmann, 2017; Vinoski, 2006).
CPU usage in RabbitMQ-based communication showed a behavior similar to memory consumption, with an even more pronounced increase. This result is explained by the larger volume of queued messages and the additional processing required for queue management, which demands greater utilization of computational resources (Vinoski, 2006). In contrast, gRPC demonstrated relatively stable CPU usage throughout the experiments, even under increased load. This stability is attributed to the use of “Protocol Buffers”, a more efficient binary serialization format that reduces computational cost compared to textual formats, contributing to greater predictability in CPU consumption (GRPC, 2018).
Despite the absolute increase in CPU and memory consumption associated with RabbitMQ-based communication, the joint analysis of throughput metrics and resource consumption revealed that this growth occurred proportionally to the increase in throughput. This means that the increase in CPU and memory utilization did not imply a loss of efficiency. On the contrary, the system maintained a consistent relationship between the resources consumed and the volume of requests processed, suggesting that the higher resource consumption is directly associated with the greater processing capacity and not with inefficiencies in the use of these resources.
The results obtained indicate a superior performance of messaging-based communication with RabbitMQ when compared to gRPC and REST in the evaluated scenarios. This difference is fundamentally explained by the distinct characteristics of the communication paradigms. While gRPC, as a synchronous request-response model, requires the client to wait for the operation to complete, RabbitMQ adopts an asynchronous queue-based approach. This decoupling between message producers and consumers allows for greater absorption of load peaks and more efficient resource utilization under high concurrency, as requests can be queued and processed gradually (Shafabakhsh et al., 2020).
When comparing synchronous communication methods in high-demand systems developed in Node.js, gRPC showed superior performance to REST. This superiority was evident in a higher successful processing rate, lower error rates, and reduced latency. gRPC’s efficiency is attributed to its reliance on HTTP/2 and the use of “protocol buffers” for binary serialization, which optimize communication and resource utilization, making it a more robust alternative for scenarios requiring immediate responses compared to REST.
In the context of this experiment, asynchronous communication proved more efficient for handling high-demand scenarios. The AMQP protocol, implemented with RabbitMQ, outperformed both REST and gRPC, primarily due to its intrinsic ability to absorb load peaks by queuing requests. This characteristic allows the system to maintain stability and responsiveness even under extreme load conditions, where synchronous approaches would tend to saturate and fail.
Despite superior performance in processing rate and latency in high-load scenarios, RabbitMQ does not entirely replace synchronous approaches. The latter remain relevant in contexts requiring immediate response and direct service-to-service communication, where the decoupling introduced by messaging may not be desirable or necessary. Additionally, gRPC demonstrated greater efficiency in CPU usage, maintaining stable consumption even under increased load, making it a more suitable alternative in scenarios with computational resource constraints or those demanding predictability in processing consumption.
In summary, the results of this experimental research indicate that the choice of communication paradigm in microservice architectures is multifaceted and directly depends on the specific system requirements. Asynchronous messaging, such as RabbitMQ, is ideal for high-demand scenarios that prioritize load absorption capacity and resilience, while gRPC stands out as the most efficient option among synchronous protocols, being particularly advantageous for systems requiring low latency and predictability in resource consumption, and REST, although simpler, proves less suitable for high loads.
4. Conclusion
This study aimed to comparatively evaluate the performance of three inter-service communication paradigms — HTTP/REST, gRPC, and RabbitMQ — in a chain processing architecture, subjected to different levels of concurrency and data volumes. It was found that asynchronous messaging-based communication, using RabbitMQ, demonstrated superior capacity for absorbing and processing requests in high-demand scenarios, exhibiting a higher processing rate and lower overall latency. Among synchronous models, gRPC consistently outperformed REST, showing better performance in terms of latency and processing rate, attributed to the use of HTTP/2 and binary serialization. REST, in turn, proved less efficient and more prone to failures under high load. Although RabbitMQ presented higher absolute CPU and memory consumption, this increase occurred proportionally to the increase in processing capacity, indicating no loss of efficiency in resource utilization. The main contribution of this work lies in elucidating the performance trade-offs between these paradigms, providing subsidies for more informed architectural decisions in high-demand microservices systems, especially in Node.js environments.
However, the study presented some limitations, such as the simplified business logic and the fixed processing time per stage, which, although they guaranteed experimental predictability, do not replicate the complexity of real systems. Additionally, the chained architecture restricts the generalization of results to other microservice interaction models. For future studies, it is suggested to explore different architectural patterns and evaluate communication protocols in scenarios closer to their real applications, which can deepen the understanding of the applicability of each paradigm in specific contexts.
Bibliographic References
Barbetta, P.A; Reis, M.M; Bornia, A.C. 2010. Estatística para Cursos de Engenharia e Informática. 3ed. Atlas, São Paulo, SP, Brasil.
Chapman, R.; Holmes, P. 2023. Observability with Grafana: Monitor, control, and visualize your Kubernetes and cloud platforms using the LGTM stack. 1ed. Packt Publishing Ltd., Birmingham, WM, UK
Dhandapani A. 2025. Microservices Architecture in Financial Services: Enabling Real-Time Transaction Processing and Enhanced Scalability. European Journal of Computer Science and Information Technology 13(32): 145-159.
Garg, V.; Khan, S. 2024. Microservice Architectures for Secure Digital Wallet Integrations. Stallion Journal for Multidisciplinary Associated Research Studies. 3(5): 165-190.
Grafana. Grafana K6 documentation Grafana Labs. 2025. Disponível em: https://grafana.com/docs/k6/latest. Acesso em: 20 mar. 2026.
GRPC. A High performance, open-source universal RPC framework. 2018. Disponível em: https://grpc.io/. Acesso em: 30 jan. 2026
Kleppmann, M. 2017. Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. O’Reilly Media, Sebastopol, CA, EUA.
Muniyandi, V. 2025. Utilizing Grpc For High-Performance Inter-Service Communication In .NET. Nanotechnology Perceptions 21(3): 62-73
Newman, S. 2019. Building Microservices: Designing Fine-Grained Systems. 2. ed. O’Reilly Media, Sebastopol, CA, EUA.
Niswar, M.; Safruddin, R. A.; Bustamin, A.; Aswad, I. 2024. Performance evaluation of microservices communication with REST, GraphQL, and gRPC. International Journal of Electronics and Telecommunications 70(02): 429-436.
Richardson, C. 2018. Microservices Patterns: With Examples in Java. Manning Publications, Shelter Island, NY, EUA.
Samineni, N. 2025. Designing Scalable Microservices Architectures Using .NET Core and Docker in Fintech. Global Business & Economics Journal. Disponível em: https://gbej.org/articles/designing-scalable-microservices-architectures-using-net-core-and-docker-in-fintech. Acesso em: 22 out. 2025.
Shafabakhsh, B., Lagerström, R., & Hacks, S. 2020. Evaluating the Impact of Inter Process Communication in Microservice Architectures. In: 8th International Workshop on Quantitative Approaches to Software Quality, 2020, Singapura. Anais… p. 55-63.
Sommerville, I.Engineering Software Products: An Introduction to Modern Software Engineering. [S.I.]: Pearson, 2020.
Villamizar, M; Garcés, O; Castro, H; Verano, M; Salamanca, L; Casallas, R. 2015. Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud. IEEE. Bogotá, Colômbia.
Vinoski, S. 2006. Advanced Message Queuing Protocol. IEEE Internet Computing. 10(6): 87-89.
Wang, Z., Zhu, J., Guo, J., & Liu, Y. 2025. Microservice Deployment Based on Multiple Controllers for User Response Time Reduction in Edge-Native Computing. Sensors, 25(10), 3248
Yadlapalli, R. 2025. Cloud Payment Systems and Microservices Architecture in Modern Banking: A Strategic Framework for Digital Transformation. Sarcouncil Journal of Engineering and Computer Sciences 4(7): 1254-1259.
Çiftçi, B.; Çiloğlugil, B. 2025. A Review of Comparative Studies on Performance Evaluation of Communication Mechanisms for Microservices. In: Computational Science and Its Applications – ICCSA 2025, 2025, Istambul, Turquia. Anais… p. 98-113
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