Comparative Performance Analysis of GRPC and Rest API Under Various Traffic Conditions and Data Sizes Using a Quantitative Approach
Web 3.0 presents challenges in efficient data exchange, especially in decentralized systems. REST API (HTTP/1.1) remains widely used due to its broad compatibility but has communication inefficiencies, while gRPC (HTTP/2) offers better performance with multiplexing and Protocol Buffers. This study compares REST API and gRPC under various traffic conditions and data sizes using Apache JMeter and Wireshark, measuring throughput, response time, latency, and data transfer efficiency. Results show that REST API has higher throughput in low-traffic scenarios (995 vs. 29.5 req/min) and faster GET response time (3 ms vs. 20 ms), while gRPC excels in large data transfers (276.34 KB/s vs. 134.1 KB/s) and stable latency (0.147 ms). However, ANOVA analysis (p > 0.05) indicates no statistically significant difference. REST API is ideal for standard web applications, while gRPC is suited for microservices and real-time systems.
Authors
- Rizka Ardiansyah
- Nouval Trezandy Lapatta (ORCID: https://orcid.org/0000-0002-0959-9596)
- Mohd Fadzil Ain (ORCID: https://orcid.org/0000-0001-8730-8849)
- Muhammad Akbar (ORCID: https://orcid.org/0009-0005-1762-042X)
- Septiano Anggun Pratama
Institutions
- Tadulako University (ID)
Publication Details
- Journal
- Journal of Applied Informatics and Computing
- Published
- 2025-03-25
- DOI
- https://doi.org/10.30871/jaic.v9i2.9276
- Citations
- 1
- Primary Topic
- Advanced Data Storage Technologies
- Type
- article
- Field-Weighted Citation Impact
- 1.49