In software engineering, a connection pool is a cache of connections maintained so that the connections can be reused when future requests to the resource are required.
Description
Connection pools are used to enhance the performance of executing commands on a database or other server. Opening and maintaining a connection for each user especially requests made to a dynamic database-driven website application, is costly and wastes resources.
In connection pooling, after a connection is created, it is placed in the pool and it is used over again so that a new connection does not have to be established. If all the connections are being used, a new connection is made and is added to the pool. Connection pooling also cuts down on the amount of time a user must wait to establish a connection to the resource.
Connection Pool libraries
Java
HikariCP
It is considered as one of the best libraries for connection pooling. Play 2.4 Framework uses HikariCP by default.
Website, GitHub.BoneCP
It beats older connection pools such as C3P0 and DBCP but should now be considered deprecated in favour of HikariCP.
Website, GitHubApache Commons DBCP
Website.