Implementasi Optimistic Concurrency Control pada Sistem Aplikasi E-Commerce berdasarkan Arsitektur Microservices menggunakan Kubernetes

Ammar Dwi Anwari, Rizky Januar Akbar, Royyana Muslim Ijtihadie
Submission Date: 2021-08-15 11:11:57
Accepted Date: 2021-12-22 11:50:06

Abstract


MicroService memiliki banyak pendekatan dalam penerapannya. Salah satunya dengan membuat setiap Service bersifat isolated. Untuk memenuhi sifat isolated tersebut komunikasi dilakukan secara asinkronus dimana setiap Service berkomunikasi menggunakan bantuan dari event bus. Duplikasi data akan sering terjadi dikarenakan Service bersifat isolated yaitu setiap Service tidak bisa mengambil data pada database yang bukan miliknya. Oleh karena itu duplikasi data harus tetap sinkron di setiap Service. Permasalahan muncul pada saat dilakukan scaling. Service yang di scaling memproses event secara konkuren sehingga urutan eksekusi setiap event bisa saja tidak terurut. Hal ini memungkinkan keadaan nilai dari suatu data menjadi tidak konsisten diantara masing-masing database tiap Service. Optimistic Concurrency Control sebagai solusi terhadap masalah konsistensi data yang terjadi. Hasil dari solusi yang diterapkan membuat nilai data menjadi sinkron disetiap database Service dalam keadaan scaling.

Keywords


Microservices; Concurrency Control; Optimistic Concurrency Control; Event Bus

Full Text: PDF

CC Licencing


Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

Refbacks

  • There are currently no refbacks.


Creative Commons License
Jurnal Teknik ITS by Direktorat Riset dan Pengabdian Masyarakat (DRPM) ITS is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://ejurnal.its.ac.id/index.php/teknik.
Statistik Pengunjung