Treffer: PostgreSQL Tuning for Cloud-Native Java: Connection Pooling vs. Reactive Drivers

Title:
PostgreSQL Tuning for Cloud-Native Java: Connection Pooling vs. Reactive Drivers
Source:
International Journal of Computational and Experimental Science and Engineering. 11
Publisher Information:
Iskender AKKURT, 2025.
Publication Year:
2025
Document Type:
Fachzeitschrift Article
ISSN:
2149-9144
DOI:
10.22399/ijcesen.3479
Rights:
CC BY
Accession Number:
edsair.doi...........6b6c6238cf67db2889901c9e83c29060
Database:
OpenAIRE

Weitere Informationen

With the transition of software development practices under the cloud-native principles, database connectivity is the key to developing scalable and high-performance Java applications. As a widely used and powerful open-source relational database, PostgreSQL officially supports well-known synchronization access and a newfangled reactive model. This article compares connection pooling and reactive driver strategies for handling PostgreSQL connections in a cloud-native Java environment. The test rigs described in this discussion are designed to use real experiments with containers, different workloads, and performance monitoring tools. Each model is evaluated based on how it affects core performance metrics, including throughput, latency, resource utilization, and fault tolerance. Using mature libraries like HikariCP, connection pooling is demonstrated to be effective in stable systems with moderate concurrency due to its ease of use and simplicity, which integrates with existing Java tooling. However, reactive drivers based on R2DBC benefit from the best scalability and performance in high-concurrency, event-driven, event-driven systems using non-blocking I/O and asynchronous execution. The article also discusses practical tuning strategies and implementation guidance that match PostgreSQL's process model. In addition, it outlines hybrid or transitional use cases where both models could be used. The findings are ultimately guidance for choosing and configuring the best fitting PostgreSQL connectivity approach for the everyday modern Java applications in today's fast changing cloud native landscapes.