<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">ntv</journal-id><journal-title-group><journal-title xml:lang="ru">Научно-технический вестник информационных технологий, механики и оптики</journal-title><trans-title-group xml:lang="en"><trans-title>Scientific and Technical Journal of Information Technologies, Mechanics and Optics</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2226-1494</issn><issn pub-type="epub">2500-0373</issn><publisher><publisher-name>Университет ИТМО</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.17586/2226-1494-2026-26-3-517-524</article-id><article-id custom-type="elpub" pub-id-type="custom">ntv-619</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>КОМПЬЮТЕРНЫЕ СИСТЕМЫ И ИНФОРМАЦИОННЫЕ ТЕХНОЛОГИИ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>COMPUTER SCIENCE</subject></subj-group></article-categories><title-group><article-title>Сравнение gRPC и REST API в поиске более быстрой и совместимой архитектуры</article-title><trans-title-group xml:lang="en"><trans-title>Comparing gRPC and REST API in search of a faster and more compatible architecture</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0009-0005-0755-895X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Баженов</surname><given-names>А. Э.</given-names></name><name name-style="western" xml:lang="en"><surname>Bazhenov</surname><given-names>A. E.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Баженов Артем Эдуардович — старший преподаватель</p><p>Самара, 443010</p></bio><bio xml:lang="en"><p>Artem E. Bazhenov — Senior Lecturer</p><p>Samara, 443010</p></bio><email xlink:type="simple">a.bazhenov@psuti.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0009-0005-0755-895X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Маленкова</surname><given-names>А. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Malenkova</surname><given-names>A. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Маленкова Арина Алексеевна — студент</p><p>Самара, 443010</p></bio><bio xml:lang="en"><p>Arina A. Malenkova — Student</p><p>Samara, 443010</p></bio><email xlink:type="simple">kroshik0812@vk.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0009-0002-7502-8860</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Майоров</surname><given-names>Н. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Maiorov</surname><given-names>N. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Майоров Никита Владимирович — студент</p><p>Самара, 443010</p></bio><bio xml:lang="en"><p>Nikita V. Maiorov — Student</p><p>Samara, 443010</p></bio><email xlink:type="simple">nikita@m7n.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Поволжский государственный университет телекоммуникаций и информатики</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Volga Region State University of Telecommunications and Informatics</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>09</day><month>07</month><year>2026</year></pub-date><volume>26</volume><issue>3</issue><fpage>517</fpage><lpage>524</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Баженов А.Э., Маленкова А.А., Майоров Н.В., 2026</copyright-statement><copyright-year>2026</copyright-year><copyright-holder xml:lang="ru">Баженов А.Э., Маленкова А.А., Майоров Н.В.</copyright-holder><copyright-holder xml:lang="en">Bazhenov A.E., Malenkova A.A., Maiorov N.V.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://ntv.elpub.ru/jour/article/view/619">https://ntv.elpub.ru/jour/article/view/619</self-uri><abstract><p>Введение. Микросервисная архитектура стала стандартным подходом к построению высоконагруженных и эволюционирующих информационных систем. В цифровых образовательных платформах одновременно важны совместимость внешних интерфейсов и низкие задержки внутренних межсервисных вызовов. Выполнено сравнение подходов Google Remote Procedure Calling (gRPC) и Representational State Transfer Application Programming Interface (REST API) по метрикам времени отклика и пропускной способности. Сформулированы рекомендации по выбору подхода для сервисов аналитики учебных платформ. Метод. Объектом исследования является мини-сервис аналитики учебной платформы, который по запросу возвращает агрегированные показатели действий пользователя за заданный интервал времени. Реализованы две функционально эквивалентные версии сервиса на Python с одинаковой моделью данных и идентичной бизнес-логикой: REST-сервис на основе Hypertext Transfer Protocol (HTTP) версии 1.1, с передачей данных в формате JavaScript Object Notation и gRPC-сервис на основе HTTP/2 с передачей данных в формате Protocol Buffers. Измерения выполнялись нагрузочными скриптами на стороне клиента с фиксацией полного времени выполнения запроса в базовом сценарии фильтрации по идентификатору пользователя и интервалу. Тесты проводились при 100, 200 и 500 одновременных клиентах при длительности измерительного окна 20 с. Основные результаты. В качестве метрик использовались среднее время отклика, 95-й процентиль задержки и пропускная способность (число запросов в секунду). По результатам измерений при 100 одновременных клиентах подход gRPC обеспечивает меньшую среднюю задержку, тогда как при 500 клиентах REST API демонстрирует более высокую пропускную способность и меньшее среднее время отклика. При росте нагрузки 95-й процентиль задержки у gRPC остается ниже, чем у REST API, что свидетельствует о более стабильном поведении задержек в области высоких процентилей в условиях высокой конкуренции запросов. Обсуждение. Показано, что выбор между REST API и gRPC не является взаимоисключающим: REST API удобен для публичных интерфейсов и интеграций с внешними клиентами, а gRPC рационально использовать для внутренних вызовов между микросервисами, где критичны верхние задержки и требуется строгая контрактная спецификация. Рекомендации по выбору технологии сформулированы с учетом профиля нагрузки и требований к интеграции.</p></abstract><trans-abstract xml:lang="en"><p>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.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>микросервисная архитектура</kwd><kwd>цифровые образовательные платформы</kwd><kwd>gRPC</kwd><kwd>REST</kwd><kwd>HTTP/2</kwd><kwd>HTTP/1.1</kwd><kwd>Protocol Buffers</kwd><kwd>JSON</kwd><kwd>пропускная способность</kwd><kwd>нагрузочное тестирование</kwd></kwd-group><kwd-group xml:lang="en"><kwd>microservice architecture</kwd><kwd>digital educational platforms</kwd><kwd>gRPC</kwd><kwd>REST</kwd><kwd>HTTP/2</kwd><kwd>HTTP/1.1</kwd><kwd>Protocol Buffers</kwd><kwd>JSON</kwd><kwd>bandwidth</kwd><kwd>load testing</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Кравченко Д.А. Микросервисная архитектура // Интерактивная наука. 2022. № 4 (69). С. 43–44. doi: 10.21661/r-556565</mixed-citation><mixed-citation xml:lang="en">Kravchenko D.A. Microservice architecture. Interactive Science, 2022, no. 4 (69), pp. 43–44. (in Russian). doi: 10.21661/r-556565</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Ричардсон К. Микросервисы. Паттерны разработки и рефакторинга. СПб.: Питер, 2022. 544 с.</mixed-citation><mixed-citation xml:lang="en">Richardson C. Microservices Patterns. Manning, 2019, 520 p.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Ньюмен С. Создание микросервисов. СПб.: Питер, 2016. 300 с.</mixed-citation><mixed-citation xml:lang="en">Newman S. Building Microservices. O’Reilly Media, 2015, 250 p.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Бужин И.Г., Деревянкин А.Ю., Антонова В.М., Перевалов А.П., Миронов Ю.Б. Эффективность фреймворков для передачи информации в виртуализированной сети связи с микросервисной архитектурой // Наукоёмкие технологии в космических исследованиях Земли. 2023. Т. 15. № 2. С. 23–32. doi: 10.36724/2409-5419-2023-15-2-23-32</mixed-citation><mixed-citation xml:lang="en">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 microservice architecture. H&amp;ES Research, 2023, vol. 15, no 2, pp. 23–32. (in Russian). doi: 10.36724/2409-5419-2023-15-2-23-32</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Ирбитский И.С., Романенков А.М., Стульников К.Т., Удалов Н.Н. Анализ микросервисных архитектур и моделей // Современная наука: актуальные проблемы теории и практики. Серия: Естественные и технические науки. 2022. № 3. С. 83–90. doi: 10.37882/2223-2966.2022.03.15</mixed-citation><mixed-citation xml:lang="en">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</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Пацей Н.В., Шитько А.М. Интеграция микросервисов на основе RPC // Эпоха науки. 2021. № 27. С. 32–37. doi: 10.24412/2409-3203-2021-27-32-37</mixed-citation><mixed-citation xml:lang="en">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</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Вальдивия Х.А., Лора-Гонсалес А., Лимон К., Кортес-Вердин К., Очаран-Эрнандес Х.О. Паттерны микросервисной архитектуры: многопрофильный обзор литературы // Труды Института системного программирования РАН. 2021. Т. 33. № 1. С. 81–96. doi: 10.15514/ISPRAS-2021-33(1)-6</mixed-citation><mixed-citation xml:lang="en">Valdivia J., Lora-Gonzalez A., Limón X., Cortes-Verdin K., OcharánHerná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</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Босенко Т.М. Реализация микросервисной архитектуры в системе управления процессом обучения // Вестник МГПУ. Серия «Информатика и информатизация образования». 2024. № 2 (68). С. 106–114. doi: 10.25688/2072-9014.2024.68.2.10</mixed-citation><mixed-citation xml:lang="en">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</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Босенко Т.М. Анализ микросервисной архитектуры в среде e-learning с многовариантным доступом к учебным материалам // Международный научно-исследовательский журнал. 2024. № 10 (148). С. 98. doi: 10.60797/IRJ.2024.148.65</mixed-citation><mixed-citation xml:lang="en">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</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Sangabriel-Alarcón J., Ocharán-Hernández J., Limón X., CortésVerdín M. Domain-driven design in microservices architecture // Proceedings of the Institute for System Programming of the RAS. 2024. V. 36. N 6. P. 39–58. doi: 10.15514/ISPRAS-2024-36(6)-3</mixed-citation><mixed-citation xml:lang="en">Sangabriel-Alarcón J., Ocharán-Hernández J., Limón X., CortésVerdí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</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Васильев Б.Я. Методика тестирования API в микросервисной архитектуре продукта // Международный журнал гуманитарных и естественных наук. 2025. № 4-1 (103). С. 154–159. doi: 10.24412/2500-1000-2025-4-1-154-159</mixed-citation><mixed-citation xml:lang="en">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</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Андрианов А.В., Калинин А.С., Лаптева М.Г. Использование gRPC в современных микросервисных архитектурах: плюсы и минусы по сравнению с REST // Вестник науки. 2025. Т. 2. № 6 (87). С. 1575–1583.</mixed-citation><mixed-citation xml:lang="en">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)</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Kvancz B., Forstner B. Performance review of using gRPC for interservice communication in microservice architecture // Proc. of the 2nd Workshop on Intelligent Infocommunication Networks, Systems and Services (WI2NS2). 2024. P. 31–35. doi: 10.3311/wins2024-006</mixed-citation><mixed-citation xml:lang="en">Kvancz B., Forstner B. Performance review of using gRPC for interservice 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</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Орлов В.А., Гавриленко А.В. Интеллектуальные голосовые помощники для служб технической поддержки // Успехи кибернетики. 2025. Т. 6. № 3. С. 96–104.</mixed-citation><mixed-citation xml:lang="en">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)</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Салтанов Д.С., Арсентьева Н.В. Сравнительный анализ архитектурных подходов к разработке REST API для высоконагруженных систем // Форум молодых учёных. 2025. № 6 (106). C. 329–340.</mixed-citation><mixed-citation xml:lang="en">Saltanov D.S., Arsentyeva N.V. Comparative analysis of architectural approaches to REST API development for high-load systems. Forum of Young Scientists, 2025, no. 6 (106), pp. 329–340. (in Russian)</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">Ниматилаев Б.К., Ташполотов Ы., Омурбекова Г.К. Исследование методологии облачных технологий, совместимых с платформой Android и их возможностей // Вестник науки. 2025. Т. 3. № 4 (85). С. 854–861.</mixed-citation><mixed-citation xml:lang="en">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)</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
