PERANCANGAN API BERBASIS GRPC UNTUK KOMUNIKASI ANTARLAYANAN PADA ARSITEKTUR MICROSERVICES DI PT CYBERINDO MEGA PERSADA

JOSEPHINE, . (2026) PERANCANGAN API BERBASIS GRPC UNTUK KOMUNIKASI ANTARLAYANAN PADA ARSITEKTUR MICROSERVICES DI PT CYBERINDO MEGA PERSADA. Sarjana thesis, UNIVERSITAS NEGERI JAKARTA.

[img] Text
COVER.pdf

Download (1MB)
[img] Text
BAB 1.pdf

Download (450kB)
[img] Text
BAB 2.pdf
Restricted to Registered users only

Download (1MB) | Request a copy
[img] Text
BAB 3.pdf
Restricted to Registered users only

Download (496kB) | Request a copy
[img] Text
BAB 4.pdf
Restricted to Registered users only

Download (2MB) | Request a copy
[img] Text
BAB 5.pdf
Restricted to Registered users only

Download (260kB) | Request a copy
[img] Text
DAFTAR PUSTAKA.pdf

Download (246kB)
[img] Text
Lampiran.pdf
Restricted to Registered users only

Download (2MB) | Request a copy

Abstract

Arsitektur microservices memungkinkan pengembangan sistem yang lebih fleksibel dan skalabel, namun komunikasi antar layanan menjadi faktor penting yang mempengaruhi performa sistem secara keseluruhan. REST API masih menjadi standar umum dalam komunikasi antarlayanan, termasuk yang digunakan oleh PT Cyberindo Mega Persada, sementara gRPC berkembang sebagai alternatif yang lebih modern. Oleh karena itu, diperlukan evaluasi performa secara empiris untuk memahami karakteristik kedua protokol tersebut. Penelitian ini bertujuan membandingkan performa komunikasi antarlayanan menggunakan REST API dan gRPC pada arsitektur microservices. Metode yang digunakan adalah pendekatan quantitative true-experimental, di mana layanan API diimplementasikan dalam lingkungan container berbasis Docker dan diuji menggunakan tool k6 dengan skenario beban yang merepresentasikan pola trafik aktual sistem. Parameter yang diamati meliputi latensi, persentil latensi p50/p90/p95, waktu respons, throughput, penggunaan CPU dan memori, success rate, serta efisiensi payload. Analisis statistik menggunakan uji Mann-Whitney U dilakukan untuk menilai signifikansi perbedaan performa antar protokol. Hasil penelitian menunjukkan bahwa implementasi API gRPC berbasis contract-first dengan Protocol Buffers berhasil merepresentasikan 14 endpoint REST secara fungsional setara. Uji Mann-Whitney U menunjukkan perbedaan performa signifikan pada 84 dari 231 skenario pengujian (36,4%). Secara umum, gRPC cenderung lebih unggul pada performa transmisi di endpoint dengan hop sedang–tinggi dan payload besar. Pada penggunaan memori, REST lebih unggul di endpoint hop rendah, namun pada endpoint dengan hop menengah–tinggi, frekuensi tinggi, dan payload besar, gRPC justru lebih efisien. Keunggulan relatif kedua protokol pada resource bergantung pada kombinasi jumlah hop, frekuensi request, dan ukuran payload. Temuan ini menunjukkan bahwa pemilihan protokol komunikasi pada arsitektur microservices perlu disesuaikan dengan karakteristik komunikasi antarlayanan. ***** Microservices architecture enables more flexible and scalable system development, yet inter-service communication remains a critical factor affecting overall system performance. REST API is still the common standard for inter-service communication, including those used by PT Cyberindo Mega Persada, while gRPC has emerged as a more modern alternative. Therefore, an empirical performance evaluation is required to understand the characteristics of both protocols. This study aims to compare the inter-service communication performance of REST API and gRPC within a microservices architecture. The method employed is a quantitative true-experimental approach, where API services are implemented in a Docker-based container environment and tested using the k6 tool with load scenarios representing actual system traffic patterns. Observed parameters include latency, latency percentiles (p50/p90/p95), response time, throughput, CPU and memory usage, success rate, and payload efficiency. Statistical analysis using the Mann-Whitney U test was conducted to assess the significance of performance differences between protocols. The results show that the contract-first gRPC API implementation using Protocol Buffers successfully represented 14 REST endpoints with equivalent functionality. The Mann-Whitney U test identified significant performance differences in 84 out of 231 testing scenarios (36.4%). In contrast, REST showed better memory usage on low-hop endpoints (1–2 hops). At higher hop counts, memory usage advantages became inconsistent and dependent on request frequency and payload size. Endpoints with high frequency and large payloads tended to favor gRPC, while those with low frequency continued to favor REST. These findings indicate that communication protocol selection in microservices architecture should consider inter-service communication characteristics.

Item Type: Thesis (Sarjana)
Additional Information: 1). Prasetyo Wibowo Yunanto, S.T., M.Eng. ; 2). Deni Utama, S.T.
Subjects: Teknologi dan Ilmu Terapan > Teknik Komputer
Divisions: FT > S1 Sistem dan Teknologi Informasi
Depositing User: Users 34094 not found.
Date Deposited: 05 Aug 2026 07:35
Last Modified: 05 Aug 2026 07:35
URI: http://repository.unj.ac.id/id/eprint/67473

Actions (login required)

View Item View Item