Analisis Eksperimental Pengaruh Strategi Caching Redis terhadap Kinerja REST API pada Framework Laravel dan NestJS
Jurnal Teknik dan Science · 30.07.2026 · 5 (2) · 146-156
DOI: 10.56127/jts.v5i2.2542 ↗Kurz gefasst
Fachartikel in der Zeitschrift Jurnal Teknik dan Science, online erschienen am 30.07.2026. Verfasst von Junaedi Junaedi und 1 weiteren Autor:innen.
Abstract (Originalsprache)
The development of information technology has encouraged more services to interconnect through REST APIs. Under high read load, the same requests often access the relational database repeatedly, increasing latency and reducing throughput. This study aims to analyze the effect of Redis caching with a cache-aside pattern on REST API performance in the Laravel 12 and NestJS 11 frameworks. The method used is a quantitative experiment with a 2×2 factorial design combining framework and cache condition (no cache and Redis). Load testing was conducted using k6 at 50, 100, and 200 virtual users. Both APIs used the same MySQL dataset of 1,000 products, the same endpoints, and a 60-second cache TTL. The observed metrics include RPS, average latency, median, P95, error rate, and cache hit ratio. The results show that Redis provides a substantial performance improvement on NestJS. At 200 virtual users, average latency decreased by 89.8% and RPS increased by 111.3%, with a hit ratio of 99.7–99.9%. On Laravel, the hit ratio reached 100%, but latency improvement was only 6.7–10.8% at 50–100 virtual users and remained unstable at 200 virtual users. It can be concluded that Redis is beneficial for APIs with many read operations, but the magnitude of its benefit depends on the application runtime’s ability to handle concurrency.
Zitieren
APA
Junaedi, J., & Sururi, Y. R. A. (2026). Analisis Eksperimental Pengaruh Strategi Caching Redis terhadap Kinerja REST API pada Framework Laravel dan NestJS. Jurnal Teknik dan Science, 5(2), 146-156. https://doi.org/10.56127/jts.v5i2.2542
Vancouver
Junaedi J, Sururi YRA. Analisis Eksperimental Pengaruh Strategi Caching Redis terhadap Kinerja REST API pada Framework Laravel dan NestJS. Jurnal Teknik dan Science. 2026;5(2):146-156. doi:10.56127/jts.v5i2.2542
BibTeX
@article{Junaedi2026,
author = {Junaedi, Junaedi and Sururi, Yan Risa Aspi},
title = {Analisis Eksperimental Pengaruh Strategi Caching Redis terhadap Kinerja REST API pada Framework Laravel dan NestJS},
journal = {Jurnal Teknik dan Science},
year = {2026},
volume = {5},
number = {2},
pages = {146--156},
doi = {10.56127/jts.v5i2.2542}
}
EUVIMED