doi: 10.17586/2226-1494-2026-26-3-517-524


Comparing gRPC and REST API in search of a faster and more compatible architecture

A. E. Bazhenov, A. A. Malenkova, N. V. Maiorov


Read the full article  ';
Article in Russian

For citation:
Bazhenov A.E., Malenkova A.A., Maiorov N.V. Comparing gRPC and REST API in search of a faster and more compatible architecture. Scientific and Technical Journal of Information Technologies, Mechanics and Optics, 2026, vol. 26, no. 3, pp. 517–524 (in Russian). doi: 10.17586/2226-1494-2026-26-3-517-524


Abstract
Microservice architecture has become a standard approach to building highly loaded and evolving information systems. In digital educational platforms, compatibility of external interfaces and low delays of internal inter-service calls are important at the same time. The purpose of the work is to compare the Google Remote Procedure Calling (gRPC) and Representational State Transfer Application Programming Interface (REST API) in terms of response time and bandwidth metrics and formulate recommendations on choosing an approach for the analytics services of educational platforms. The object of the research is a mini-analytics service of the educational platform which, upon request, returns aggregated indicators of user actions for a given time interval. Two functionally equivalent versions of the service are implemented in Python with the same data model and identical business logic: a REST service based on Hypertext Transfer Protocol (HTTP) version 1.1, with data transmission in JavaScript Object Notation format and a gRPC service based on HTTP/2 with data transmission in Protocol Buffers format. The measurements were performed by load scripts on the client side with measurement of the full request execution time in the basic filtering scenario by user ID and interval. The tests were performed with 100, 200, and 500 simultaneous clients with a measuring window duration of 20 seconds. The average response time, 95th percentile latency, and throughput (number of requests per second) were used as metrics. According to the measurement results, with 100 simultaneous clients, gRPC provides lower average latency, while with 500 clients, REST demonstrates higher throughput and lower average response time. As the load increases, the 95th percentile of latency in gRPC remains lower than in REST, which indicates a more stable behavior of the “tail” of delays in conditions of high query competition. It is shown that the choice between REST and gRPC is not mutually exclusive: REST is convenient for public interfaces and integrations with external clients, and gRPC is rational to use for internal calls between microservices where overhead delays are critical and strict contractual specification is required. Recommendations on the choice of technology are formulated taking into account the load profile and integration requirements.

Keywords: microservice architecture, digital educational platforms, gRPC, REST, HTTP/2, HTTP/1.1, Protocol Buffers, JSON, bandwidth, load testing

References
1. Kravchenko D.A. Microservice architecture. Interactive Science, 2022, no. 4 (69), pp. 43–44. (in Russian). doi: 10.21661/r-556565
2. Richardson C. Microservices Patterns. Manning, 2019, 520 p.
3. Newman S. Building Microservices. O'Reilly Media, 2015, 250 p.
4. Buzhin I.G., Derevyankin A. Yu., Antonova V.M., Perevalov A.P., Mironov Yu.B. The effectiveness of frameworks for transmitting information in a virtualized communication network with a microservice architecture. H&ES Reserch, 2023, vol. 15, no 2, pp. 23–32. (in Russian). doi: 10.36724/2409-5419-2023-15-2-23-32
5. Irbitskiy I.S., Romanenkov A.M., Stulnikov K.T., Udalov N.N.Analysis of microservice architectures and models. Modern Science: actual problems of theory and practice. Series: Natural and Technical Sciences. 2022, no. 3, pp. 83–90. (in Russian). doi: 10.37882/2223-2966.2022.03.15
6. Patsei N.V., Shytska A.M. Microservices integration based on RPC. Era of Science, 2021,no. 27,pp. 32–37. (in Russian). doi: 10.24412/2409-3203-2021-27-32-37
7. Valdivia J., Lora-Gonzalez A., Limón X., Cortes-Verdin K., Ocharán-Hernández J. Patterns related to microservice architecture: a multivocal literature review. Proceedings of the Institute for System Programming of the RAS, 2021, vol. 33, no. 1, pp. 81–96. (in Russian). doi: 10.15514/ISPRAS-2021-33(1)-6
8. Bosenko T.M. Implementation of microservice architecture in the training process management system. Bulletin of the Moscow City Pedagogical University. Series "Pedagogy and Psychology", 2024,no. 2 (68), pp. 106–114. (in Russian). doi: 10.25688/2072-9014.2024.68.2.10
9. Bosenko T.M. Analysis of microservice architecture in e-learning environment with multivariate access to learning materials. International Research Journal, 2024, no. 10 (148), pp. 98. (in Russian). doi: 10.60797/IRJ.2024.148.65
10. Sangabriel-Alarcón J., Ocharán-Hernández J., Limón X., Cortés-Verdín M. Domain-driven design in microservices architecture. Proceedings of the Institute for System Programming of the RAS, 2024, vol. 36, no. 6, pp. 39–58. doi: 10.15514/ISPRAS-2024-36(6)-3
11. Vasiliev B.Y. API testing methodology in the micro-service architecture of the product. International Journal of Humanities and Natural Sciences, 2025, no. 4-1 (103), pp. 154–159. (in Russian). doi: 10.24412/2500-1000-2025-4-1-154-159
12. Andrianov A.V., Kalinin A.S., Lapteva M.G. Using gRPC in modern microservice architectures: pros and cons compared to REST. Science Bulletin, 2025, vol. 2, no. 6 (87), pp. 1575–1583. (in Russian)
13. Kvancz B., Forstner B. Performance review of using gRPC for inter-service communication in microservice architecture. Proc. of the 2nd Workshop on Intelligent Infocommunication Networks, Systems and Services (WI2NS2), 2024, pp. 31–35. doi: 10.3311/wins2024-006
14. Orlov V.A., Gavrilenko A.V. Intelligent voice assistants for technical support services. Russian Journal of Cybernetics,2025, vol. 6, no. 3, pp. 96–104. (in Russian)
15. Saltanov D.S., Arsentyeva N.V. Omparative analysysis of architectural approaches to REST API development for high-load systems. Forum of Young Scientists, 2025, no. 6 (106), pp. 329–340. (in Russian)
16. Nimatilaev B.K., Tashpolotov Y., Omurbekova G.K. Research methodology of cloud computing platform-compatible technologies Android and their features. Science Bulletin, 2025, vol. 3,no. 4 (85), pp. 854–861. (in Russian)


Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License
Copyright 2001-2026 ©
Scientific and Technical Journal
of Information Technologies, Mechanics and Optics.

Яндекс.Метрика