Connection Pooling
Connection pooling is a technique used in software development to manage database connections. These connections can be reused during program execution and conventional wisdom dictates that anything that can be reused should be created once and reused as needed. That has been the premise throughout this book as we strive to achieve higher-performing Java applications. This chapter covers the concept of connection pooling, providing fundamental principles, implementation approaches, and examples. Our coverage includes establishing connections, managing them, and terminating them when no longer needed. Best practices related to connection pooling will also be covered.
The following main topics are covered in this chapter:
- Connection pooling concepts
- Implementing connection pools
- Best practices with connection pools
By the end of the chapter, you should have a thorough understanding of connection pooling, be able to implement a connection pool...