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

Anwari, Ammar Dwi (2021) Implementasi Optimistic Concurrency Control pada Sistem Aplikasi E-Commerce berdasarkan Arsitektur Microservices menggunakan Kubernetes. Undergraduate thesis, Institut Teknologi Sepuluh Nopember.

[thumbnail of 05111740000072-Undergraduate_Thesis.pdf] Text
05111740000072-Undergraduate_Thesis.pdf - Accepted Version
Restricted to Repository staff only until 1 October 2023.

Download (1MB) | Request a copy

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.

==================================================================================================================

Microservice has many approaches in its implementation.
One of them is by making each service isolated. To fulfill the isolated nature, communication is carried out asynchronously where each service communicates using the help of the event bus.

Data duplication will often occur because each service is
isolated, that is, each service cannot retrieve data from a database that does not belong to it. Therefore duplication of data must remain in sync in each service.

Problems arise when scaling is performed. The scaling service processes events concurrently so the order of execution of each event may be unordered. This allows the state of the value of a data to be inconsistent between each database each service.

Optimistic Concurrency Control as a solution to data consistency problems that occur. The results of the implemented solutions make the data values synchronize in every database service in a state of scaling.

Item Type: Thesis (Undergraduate)
Uncontrolled Keywords: Microservices, Concurrency Control, Optimistic Concurrency Control, Event Bus
Subjects: Q Science > QA Mathematics > QA76.758 Software engineering
Divisions: Faculty of Intelligent Electrical and Informatics Technology (ELECTICS) > Informatics Engineering
Depositing User: Ammar Dwi Anwari
Date Deposited: 12 Aug 2021 09:46
Last Modified: 12 Aug 2021 09:46
URI: http://repository.its.ac.id/id/eprint/85781

Actions (login required)

View Item View Item