RSIS Repository Open-access research from RSIS International journals

International Journal of Research and Innovation in Applied Science (IJRIAS)

Performance of REST and gRPC in Microservices: Java Blocking vs. Python Non-Blocking I/O

byAgustinus Noertjahyana; Kartika Gunadi; Joseph Justin Harsono; Andreas Handojo

Published July 15, 2026  •  Vol. 11, Issue 6, pp. 3365–3371Open Access
DOI: 10.51584/IJRIAS.2026.11060258

Abstract

The selection of communication protocols and underlying concurrency models profoundly impacts the performance and resource efficiency of microservice architectures. While existing studies frequently compare protocols like REST and gRPC, they often overlook the compounded effects of language-specific I/O paradigms during complex service chaining, as well as system behavior under edge-case failures. This study evaluates the performance disparities between Blocking I/O (Java Spring Boot) and Non-Blocking I/O (Python FastAPI) architectures utilizing REST and gRPC protocols. A containerized educational platform, simulating a three-tier service chain, was developed and subjected to rigorous load testing and fault injection scenarios. System performance was measured across varying payload sizes (1 KB, 50 KB, and 1 MB) to capture P99 latency, request throughput, CPU utilization, and memory footprint. The empirical findings indicate that while gRPC over HTTP/2 significantly enhances throughput, its efficiency is heavily modulated by the host language's thread management and serialization libraries. Furthermore, we identify the exact payload crossover threshold where multi-threaded blocking models outperform asynchronous event loops and analyze system resilience during simulated network partitions. The findings provide reproducible guidelines for software architects in selecting optimal protocol-language combinations, balancing raw performance with cognitive burden and fault tolerance.

Keywords: Concurrency Model, gRPC, Microservices, REST, Service Chaining, Blocking I/O, Event Loop.

JournalInternational Journal of Research and Innovation in Applied Science (IJRIAS)
ISSN2454-6194
Volume / IssueVolume 11, Issue 6
Pages3365–3371
Publication dateJuly 15, 2026
DOI10.51584/IJRIAS.2026.11060258
PublisherRSIS International
LicenseOpen Access

How to cite this article

Agustinus Noertjahyana, Kartika Gunadi, Joseph Justin Harsono, & Andreas Handojo (2026). Performance of REST and gRPC in Microservices: Java Blocking vs. Python Non-Blocking I/O. International Journal of Research and Innovation in Applied Science (IJRIAS), 11(6), 3365-3371. https://doi.org/10.51584/IJRIAS.2026.11060258

BibTeX

@article{Agustinus2026,
  title   = {Performance of REST and gRPC in Microservices: Java Blocking vs. Python Non-Blocking I/O},
  author  = {Agustinus Noertjahyana and Kartika Gunadi and Joseph Justin Harsono and Andreas Handojo},
  journal = {International Journal of Research and Innovation in Applied Science (IJRIAS)},
  volume  = {11},
  number  = {6},
  pages   = {3365--3371},
  year    = {2026},
  doi     = {10.51584/IJRIAS.2026.11060258},
  publisher = {RSIS International}
}