# Introduction To Connection Pooling
__*Connection pooling benefits*__
+ Creating and closing database connections is a costly operation
+ Connection pooling involves maintaining a cache of database connections that can be reused by client applications
+ Connection pool:
  + Shorten the time it takes to get connected
  + Streamline application development
  + Helps you control the total number of connections available
  + To use a connection pool for the selected connector:
    + `Connector/J`: Configure a connection pool in a `JavaEE` application server and access it via `JNDI` 

------------------------------------------------------------
Applications that might benefit from the connection-pooling capability include: 

Middleware modules that maintain multiple connections to multiple TiDB servers and require connections to be readily available applications that require more permanent connections to the TiDB server

More about JNDI: https://docs.oracle.com/javase/tutorial/jndi/overview/index.html#:~:text=The%20Java%20Naming%20and%20Directory,any% 20specific%20directory%20service%20implementation.