liveBook · Manning

HikariCP

As explained in Spring Start Here, Second Edition

HikariCP is an open-source JDBC connection-pooling library that provides a data source implementation for Java applications.

HikariCP is a Java data-source implementation that uses a connection pool. By reusing database connections and creating new ones only when needed, it helps avoid unnecessary connection operations. Spring Boot uses HikariCP as its default data source. section 12.1 section 12.5

Figure 12.2 The data source is a component that manages connections to the database management systems (DBMS). The data source uses the JDBC driver to get the connections it manages. The data source aims to improve the app’s performance by allowing its logic to reuse connections to the DBMS and request new connections only when it needs them. The data source also makes sure to close the connections when it releases them.

See how a data source manages connections for reuse and supplies them to the application when needed. section 12.1

How Spring Start Here, Second Edition covers it

How deep it goes
Defines connection pooling and its performance role, but does not explain HikariCP configuration or internals.
Examples
Illustrates data-source connection reuse and contrasts managed connections with direct DriverManager access.
What you can do after
Understand why Spring Boot uses HikariCP by default and how connection pooling can reduce unnecessary operations.
How it connects
Links HikariCP to JDBC, data sources, JDBC drivers, and Spring Boot.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring Start Here, Second Edition. The section links point to the parts of the book it draws on.