Evaluasi Performa API Berbasis Arsitektur Microservices pada Sistem Logistik Menggunakan k6 dan Apache JMeter
Keywords:
Apache JMeter, k6, performa API, load testing, microservicesAbstract
The growth of Indonesia's e-commerce and logistics industry demands high reliability of microservices-based systems, making API performance a critical factor of service quality. This research evaluates logistics API performance under various load scenarios while comparing two load testing tools, k6 and Apache JMeter. Testing was conducted in a staging environment on the pickup request and shipment manifest endpoints through load, stress, and spike test scenarios with identical configurations, comprising 36 sessions (18 per tool), measuring response time (p95, p99), throughput, error rate, and the CPU and memory overhead of both tools. The results reveal two distinct degradation mechanisms: pickup request degrades with concurrency, its error rate rising from 6.68% (5 VU) to 31.48% (50 VU) and p95 from 2,569 ms to 3,365 ms, whereas manifest degrades with load duration, keeping a low error rate (0.00–0.14%) while p95 rises from 2,831 ms to 4,623 ms. Under normal load, the p95 of both endpoints (2,249–3,263 ms) remains far above the 1,000 ms service level threshold adopted in this study. Both tools cross-validate each other, with relative p95 differences of 2.6–4.0% and 4.5–13.5%; k6 is more resource-efficient (2.27% CPU, 35.6 MB) than Apache JMeter (3.90% CPU, 454.9 MB), whereas Apache JMeter offers greater data depth through its JTL format. The contribution of this research is the identification of two fundamentally different degradation mechanisms on microservices endpoints residing on the same infrastructure.
References
[1] Badan Pusat Statistik, Statistik E-Commerce 2024. Jakarta: Badan Pusat Statistik,
2025.
[2] S. Newman, Building Microservices: Designing Fine-Grained Systems, 2nd ed.
Sebastopol: O’Reilly Media, 2021.
[3] X. Zhou et al., “Revisiting the Practices and Pains of Microservice Architecture in
Reality: An Industrial Inquiry,” J. Syst. Softw., vol. 195, p. 111521, 2023, doi:
10.1016/j.jss.2022.111521.
[4] J. D. Meier, C. Farre, P. Bansode, S. Barber, and D. Rea, Performance Testing
Guidance for Web Applications. Redmond: Microsoft Press, 2007.
[5] Grafana Labs, “k6 Documentation: Open-Source Load Testing Tool,” 2023.
[Online]. Available: https://k6.io/docs/
[6] Apache Software Foundation, “Apache JMeter User’s Manual,” 2023. [Online].
Available: https://jmeter.apache.org/usermanual/index.html
[7] G. H. Setiawan, I. M. B. Adnyana, and K. Budiartha, “Pengujian Performa API
(Application Programming Interface) dengan Metode Load Testing,” in Seminar
Nasional CORIS 2022, 2022, pp. 539–542.
[8] G. Blinowski, A. Ojdowska, and A. Przybylek, “Monolithic vs. Microservice
Architecture: A Performance and Scalability Evaluation,” IEEE Access, vol. 10,
pp. 20357–20374, 2022, doi: 10.1109/ACCESS.2022.3152803.
[9] M. Hui et al., “Unveiling the Microservices Testing Methods, Challenges,
Solutions, and Solutions Gaps: A Systematic Mapping Study,” J. Syst. Softw.,
vol. 220, p. 112232, 2024, doi: 10.1016/j.jss.2024.112232.
[10] P. A. Diantono, A. Susanto, A. R. Supriyono, and D. N. Prasetyanti, “Analisis
Perbandingan Kinerja Alat Pengujian Beban Perangkat Lunak: Apache JMeter,
Gatling, dan K6,” J. Inform. Polinema, 2026.
[11] Sugiyono, Metode Penelitian Kuantitatif, Kualitatif, dan R&D, 2nd ed. Bandung:
Alfabeta, 2019.
[12] C. Wohlin, P. Runeson, M. Höst, M. C. Ohlsson, B. Regnell, and A. Wesslén,
Experimentation in Software Engineering. Berlin: Springer, 2012.
[13] C. Richardson, Microservices Patterns: With Examples in Java. Shelter Island:
Manning Publications, 2018.
[14] B. Beyer, C. Jones, J. Petoff, and N. R. Murphy, Site Reliability Engineering:
How Google Runs Production Systems. Sebastopol: O’Reilly Media, 2016.
[15] D. Ferdiansyah, A. R. Kamal, S. Alas, and F. Mulyanto, “Performance Testing
Menggunakan Metode Load Testing dan Stress Testing pada Sistem Core
Banking PT. XYZ,” J. Inf. Syst. Inform., 2023.
[16] F. Dipraja and A. Rahman, “Penerapan Redis Cluster Meningkatkan Efisiensi
Caching Arsitektur Microservices,” Intellect, vol. 4, no. 1, pp. 171–179, 2025,
doi: 10.57255/intellect.v4i1.1445.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Mufti Ridwan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
