Database connection pool in microservice architecture / Nur Ayuni Nor Sobri ...[et al.]

Nor Sobri, Nur Ayuni and Abas, Mohamad Aqib Haqmi and Mohd Yassin, Ahmad Ihsan and Megat Ali, Megat Syahirul Amin and Md Tahir, Nooritawati and Zabidi, Azlee (2022) Database connection pool in microservice architecture / Nur Ayuni Nor Sobri ...[et al.]. Journal of Electrical and Electronic Systems Research (JEESR), 20: 4. pp. 29-33. ISSN 1985-5389

Abstract

The increase and growing number of users in the internet gives a higher requirement to backend application systems nowadays to be designed to handle thousands of users traffic concurrently. Microservice architecture is also in a rising trend which they allow for each service to scale horizontally by their throughput and load helps to scale the system efficiently without waste of resources like in the traditional monolithic application system. Database connection pool helps for backend systems to access databases efficiently. The present issue is determining the optimal number of database connections to use in a microservice based backend system. This paper aims to find the most suitable amount of database connections in a microservice setting, where multiple instances of the service are used for scalability and high availability purposes of the system. The experiment was conducted by varying the number of database connections from one to five to ten in both single instance and three instance services, where the service being examined is the backend system's roles and permissions service. The results of this experiment indicate that five database connections provide the best performance latency result in a microservice architecture with three service instances. With 2000 requests per second, the maximum latency was 53ms, while the 99th percentile latency was
19ms. The study contributes by determining the optimal size of a database connection pool for use in a microservice architecture with several instances of the service are operating concurrently.

Metadata

Item Type: Article
Creators:
Creators
Email / ID Num.
Nor Sobri, Nur Ayuni
UNSPECIFIED
Abas, Mohamad Aqib Haqmi
UNSPECIFIED
Mohd Yassin, Ahmad Ihsan
UNSPECIFIED
Megat Ali, Megat Syahirul Amin
megatsyahirul@uitm.edu.my
Md Tahir, Nooritawati
UNSPECIFIED
Zabidi, Azlee
UNSPECIFIED
Subjects: Q Science > QA Mathematics > Instruments and machines > Electronic Computers. Computer Science > Database management
Divisions: Universiti Teknologi MARA, Shah Alam > College of Engineering
Journal or Publication Title: Journal of Electrical and Electronic Systems Research (JEESR)
UiTM Journal Collections: UiTM Journal > Journal of Electrical and Electronic Systems Research (JEESR)
ISSN: 1985-5389
Volume: 20
Page Range: pp. 29-33
Keywords: Backend application, database connection pool, high availability, microservice, scalability
Date: April 2022
URI: https://ir.uitm.edu.my/id/eprint/63167
Edit Item
Edit Item

Download

[thumbnail of 63167.pdf] Text
63167.pdf

Download (371kB)

ID Number

63167

Indexing

Statistic

Statistic details