NORMA eResearch @NCI Library

Enhancing Microservice Performance: A Comparative Analysis of Thread & Fiber Model

Lumba, Suraj (2023) Enhancing Microservice Performance: A Comparative Analysis of Thread & Fiber Model. Masters thesis, Dublin, National College of Ireland.

[thumbnail of Master of Science]
Preview
PDF (Master of Science)
Download (1MB) | Preview
[thumbnail of Configuration manual]
Preview
PDF (Configuration manual)
Download (310kB) | Preview

Abstract

Microservices in the today’s world are becoming an essential paradigm to make a software system highly scalable, available as well as reliable by ensuring its maintainability and flexibility at the same time. The inherent difficulties and complexity of managing interactions across loosely linked services create the need for efficient microservices communication solutions. In order to guarantee smooth cooperation and coordination across services, microservices architectures need effective communication. The necessity for efficient microservices communication solutions is examined in this abstract, emphasizing the value of low latency in response time. Even if we talk about the real time processing, Amazon claimed that with the delay of 100 ms, their sales get affected by 1% Einav (2019). Google discovered a 20% traffic loss for every additional 1/2 a second of time in search page production Einav (2019). For instance, If a broker’s computerized trading platform lags behind the competition by 5 milliseconds, they forfeit $4 million in revenue per millisecond Einav (2019). We will carefully examine several studies that looked at the criteria for time delays in microservices and discuss many strategies which were carried out in earlier studies to reduce the response time delay. As an innovative approach, the thread management that is involved in the inter-process communication or say (IPC) on which every microservice has been implemented, shall now become thread-free. And this Thread-based management will be replaced by the Fiber-based management framework. As a consequence of this, it will effectively optimize the response time latency by just having fewer number of main threads multiplexed with multiple Fibers(Goroutines). These Goroutines are managed by Go run-time scheduler. The experimental evaluations discussed in this paper consists of 2 Implementation Models: Thread based Model and Fiber based Model, and will prove that Thread based model consumes 4X time as a minima and almost 8.5X time as a maxima in comparison to the Fiber based model. Consequently, the Microservice Architecture oriented with the Fiber based implementation will perform 6.25 times faster than that of Thread based implementation.

Item Type: Thesis (Masters)
Supervisors:
Name
Email
Lugones, Diego
UNSPECIFIED
Uncontrolled Keywords: Inter-process communication(IPC); Microservices; Spring Boot Framework; Gin Framework; Golang; Fiber(Goroutines)
Subjects: Q Science > QA Mathematics > Electronic computers. Computer science
T Technology > T Technology (General) > Information Technology > Electronic computers. Computer science
Q Science > QA Mathematics > Computer software
T Technology > T Technology (General) > Information Technology > Computer software
T Technology > T Technology (General) > Information Technology > Cloud computing
Divisions: School of Computing > Master of Science in Cloud Computing
Depositing User: Tamara Malone
Date Deposited: 09 Oct 2024 17:48
Last Modified: 09 Oct 2024 17:48
URI: https://norma.ncirl.ie/id/eprint/7088

Actions (login required)

View Item View Item