HikariCP is a high-performance JDBC connection pooling library designed to offer minimal overhead and maximum throughput. It aims for simplicity and stability, concentrating on fast connection acquisition and minimal latency under load. Its internals manage a pool of connections aggressively but smartly, with options such as leak detection, timeout thresholds, and adaptive connection retirement. Because it avoids heavy internal locking, it scales well in high-concurrency environments, making it a popular choice in microservices and high-throughput web backends. Metrics and instrumentation hooks (for example, via Dropwizard or Micrometer) allow runtime visibility into pool usage and health. HikariCP’s focus is on doing the essential work of pooling correctly and efficiently, rather than bundling extraneous features.
Features
- Very lightweight footprint (~130–165 KB) with minimal dependencies
- High performance achieved via micro-optimizations across millions of operations
- “Zero-overhead” pooling design focused on simplicity and reliability
- Default connection pool in Spring Boot, Play Framework, Slick, and JOOS
- Extensive configuration options to tune timeouts, lifecycles, and pool sizing
- Strong compatibility with diverse JDBC drivers and databases