Jurnal Buana Informatika
Vol. 12 No. 2 (2021): Jurnal Buana Informatika Volume 12 - Nomor 2 - Oktober 2021

Load Test pada Microservice yang menerapkan CQRS dan Event Sourcing

Difa Al Fansha (Politeknik Pos Indonesia)
Muhammad Yusril Helmi Setyawan (Politeknik Pos Indonesia)
Mohamad Nurkamal Fauzan (Politeknik Pos Indonesia)



Article Info

Publish Date
02 Nov 2021

Abstract

Abstract. Load Test on Microservice implementing CQRS and Event Sourcing. In developing an application, determining the architecture is a very important job. This research implements microservice architecture with CQRS pattern and event sourcing on OpenAPI, API-driven and event-driven integration between services. Applying the right architecture can make the performance of the application faster. There are two test activities that are useful to find out the difference in the frequency of requests for APIdriven and event-driven that can affect response time, error rate and throughput, as well as analyze which architecture has better performance. The test is carried out using a load test technique using the JMeter tool. This study proves that microservices with CQRS and Event Sourcing patterns have 3.7% faster performance compared to API-driven, and communication between services has no effect on error rate and throughput. Keywords: microservice, load test, CQRS, event sourcing, software architecture Abstrak. Dalam pengembangan sebuah aplikasi, penentuan arsitektur merupakan pekerjaan yang sangat penting. Penelitian ini mengimplementasikan arsitektur microservice dengan pola CQRS dan event sourcing pada OpenAPI, integrasi antar service berbasis API-driven dan event-driven. Penerapan arsitektur yang tepat dapat membuat performansi dari aplikasi menjadi lebih cepat. Terdapat dua aktivitas pengujian yang berguna untuk mengetahui perbedaan frekuensi request pada API-driven dan eventdriven yang dapat mempengaruhi response time, error rate dan juga throughput, serta menganalisis arsitektur mana yang memiliki performa yang lebih baik. Pengujian dilakukan dengan teknik load test yang menggunuakan tool JMeter. Penelitian ini membuktikan bahwa microservice dengan pola CQRS dan Event Sourcing memiliki performansi lebih cepat 3,7% dibandingkan dengan API-driven, serta komunikasi antar service tidak berpengaruh pada error rate dan throughput.Kata Kunci: microservice, load Test, CQRS, event sourcing, software arsitektur

Copyrights © 2021