HikariCP

光 HikariCP・A solid, high-performance, JDBC connection pool at last. (by brettwooldridge)

HikariCP Alternatives

Similar projects and alternatives to HikariCP

  1. FrameworkBenchmarks

    Discontinued Source for the TechEmpower Framework Benchmarks project

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Hasura

    239 HikariCP VS Hasura

    Blazing fast, instant realtime GraphQL APIs on all your data with fine grained access control, also trigger webhooks on database events.

  4. litestream

    Streaming replication for SQLite.

  5. Graal

    197 HikariCP VS Graal

    GraalVM compiles applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀

  6. sqlx

    158 HikariCP VS sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by transact-rs)

  7. Exposed

    31 HikariCP VS Exposed

    Kotlin SQL Framework

  8. instant

    23 HikariCP VS instant

    Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.

  9. Kotest

    18 HikariCP VS Kotest

    Powerful, elegant and flexible test framework for Kotlin with assertions, property testing and data driven tests.

  10. H2

    11 HikariCP VS H2

    H2 is an embeddable RDBMS written in Java.

  11. hypersistence-utils

    The Hypersistence Utils library (previously known as Hibernate Types) gives you Spring and Hibernate utilities that can help you get the most out of your data access layer.

  12. c3p0

    2 HikariCP VS c3p0

    a mature, highly concurrent JDBC Connection pooling library, with support for caching and reuse of PreparedStatements.

  13. spring-boot-r2dbc

    An example implementation of Spring Boot R2DBC REST API with PostgreSQL database.

  14. collector

    Collector is an ORM, CRUD server, and distributed programming project using protobufs, grpc, sqlite, and extensive use of reflection!

  15. Jedis

    7 HikariCP VS Jedis

    Redis Java client

  16. art-of-readme

    Discontinued :love_letter: Things I've learned about writing good READMEs.

  17. Ktorm

    7 HikariCP VS Ktorm

    A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.

  18. Vibur DBCP

    Vibur DBCP - concurrent and dynamic JDBC connection pool

  19. http4k

    6 HikariCP VS http4k

    The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.

  20. jOOQ

    104 HikariCP VS jOOQ

    jOOQ is the best way to write SQL in Java

  21. JDBI

    30 HikariCP VS JDBI

    The Jdbi library provides convenient, idiomatic access to relational databases in Java and other JVM technologies such as Kotlin, Clojure or Scala.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better HikariCP alternative or higher similarity.

HikariCP discussion

Log in or Post with

HikariCP reviews and mentions

Posts with mentions or reviews of HikariCP. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-03-16.
  • Threads, Pools, Promise.all: Why Your Postgres Falls Over First (Spring Boot vs Node)
    1 project | dev.to | 19 Oct 2026
    Usually smaller than you think. HikariCP's own pool sizing guide starts from connections ≈ (core_count × 2) + effective_spindle_count on the database server, and argues that a small pool with a queue in front of it beats a big pool. Practical steps:
  • Connection Leak vs. Pool Exhaustion: How to Tell the Difference
    1 project | dev.to | 12 Oct 2026
    Defaults as documented by HikariCP, node-postgres, SQLAlchemy, and Go. Frameworks often override them, so read the effective values from your running config.
  • PostgreSQL Connection Pooling at Scale
    1 project | dev.to | 7 Oct 2026
    --- ## Step 4 — Choose the Right Pooler for Your Scale | Feature | PgBouncer | pgpool-II | Odyssey | |---|---|---|---| | Transaction mode | ✅ Excellent | ✅ Supported | ✅ Excellent | | Read replica routing | ❌ No | ✅ Built-in | ⚠️ Limited | | Protocol overhead | Very low | Moderate | Low | | Operational complexity | Low | High | Medium | Use PgBouncer for lightweight, high-performance pooling with minimal operational surface area. Use pgpool-II when you need read/write splitting and can absorb the configuration work. Odyssey from Yandex is worth evaluating at very high connection counts — its multi-threaded model handles scale that PgBouncer's single-threaded architecture cannot match above ~50k clients. --- ## Gotchas **`server_reset_query` in transaction mode.** In session mode, PgBouncer runs `DISCARD ALL` between clients. In transaction mode this is skipped — but a custom `server_reset_query` will still fire and break your session state assumptions. **`max_client_conn` lower than your thread count.** If your application has 200 threads but `max_client_conn = 100`, the remaining 100 threads block, timeout, and retry. That retry storm amplifies load exactly when you can least afford it. **No client-side `connect_timeout`.** Without it, blocked connections queue indefinitely. Set `connect_timeout=3000ms` at the pool level, not just at the Postgres level. --- ## Conclusion Most connection storms are self-inflicted through misconfiguration, not load. Audit your ORM's prepared statement behavior first, apply the pool size formula, then deploy PgBouncer with monitoring on `SHOW POOLS` and `SHOW STATS`. Pool saturation should trigger alerts before clients ever see errors. **Resources:** - [PgBouncer documentation](https://www.pgbouncer.org/config.html) - [HikariCP pool sizing analysis](https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing) - [pgjdbc `preferQueryMode` reference](https://jdbc.postgresql.org/documentation/use/)
  • Connection Pool Exhaustion in Mobile Backends
    1 project | dev.to | 26 Mar 2026
    This caught two N+1 queries and a missing `connection.close()` in a rarely-hit endpoint — exactly the kind of bugs that sleep until traffic spikes wake them up. ## Gotchas - **maxLifetime = server timeout** is a race condition, not a match. Always go 30+ seconds shorter. - **PgBouncer transaction mode breaks prepared statements silently.** You will only see errors under load, which makes debugging painful. Disable caching upfront. - **Pool sizing formula uses app instance cores, not database cores.** A 64-core DB server does not mean you need 128 connections. You probably need 8–10 per node. - **connectionTimeout at 30 seconds is too generous.** Your mobile clients have already left. Use 5 seconds, fail fast, and handle retries at the application layer. - **Connection leaks hide in low-traffic endpoints.** Add detection early, not after your first spike. ## Conclusion The connection pool is the narrowest pipe in your mobile backend. We spent two weeks tuning application code that turned out not to matter. The pool config took an afternoon and fixed everything. Start with `maxLifetime` below your server-side timeouts, disable prepared statement caching when using PgBouncer transaction mode, and size your pool per app instance — not per database. These three changes took our p99 from 2,400 ms to 85 ms under 10x load. **Further reading:** - [HikariCP Configuration Guide](https://github.com/brettwooldridge/HikariCP#frequently-used) - [PostgreSQL Wiki: Number of Connections](https://wiki.postgresql.org/wiki/Number_Of_Database_Connections) - [PgBouncer Feature Matrix](https://www.pgbouncer.org/features.html)
  • Connection Pool Tuning Under Load: How HikariCP Defaults Silently Kill Your Mobile Backend
    1 project | dev.to | 18 Mar 2026
    Running this in production reduced our average pool size by 40% during off-peak hours while maintaining zero timeouts during bursts. ## Gotchas **PgBouncer's `transaction` mode breaks prepared statements.** If your ORM uses server-side prepared statements, switch to `SET plan_cache_mode = force_generic_plan` or disable prepared statements at the HikariCP level. **Don't skip PgBouncer and just raise PostgreSQL's `max_connections`.** PostgreSQL allocates ~10MB per connection. At 500 connections, you're burning 5GB of RAM on connection overhead alone, and context-switching tanks query performance. **Adaptive sizing needs bounds.** Always set `MAX_CEILING` and `MIN_FLOOR`. Without them, a runaway burst can open connections until PostgreSQL refuses new ones — and then every replica fails simultaneously. **Retry storms amplify the problem.** If your mobile clients use aggressive retry logic, a brief connection starvation event triggers a second, larger spike. Configure exponential backoff with jitter on the client side. ## Wrapping Up The pool size formula is a starting point for one type of workload. Mobile backends are a different animal. Instrument with Micrometer, deploy PgBouncer in transaction mode, and let a metrics-driven feedback loop size your pool instead of a formula. Here is the gotcha that will save you hours: measure `connections_pending`, not pool utilization. That single metric is the earliest signal that your backend is about to cascade. [HikariCP Metrics Docs](https://github.com/brettwooldridge/HikariCP/wiki/MBean-(JMX)-Monitoring-and-Management) | [PgBouncer Config Reference](https://www.pgbouncer.org/config.html) | [Micrometer + Ktor Guide](https://ktor.io/docs/server-metrics-micrometer.html)
  • Serverless applications on AWS with Lambda using Java 25, API Gateway and Aurora DSQL - Part 1 Sample applications
    4 projects | dev.to | 16 Mar 2026
    aws-lambda-java-25-hibernate-aurora-dsql. Here we use Hibernate ORM framework with Hikari connection pool. I think that Hibernate JPA is mostly in use together with frameworks like Spring Boot, Quarkus, or Micronaut (this is the topic of my future article series). But I'd like to show you the implications of adding such a framework to Lambda performance.
  • 100000 TPS over a billion rows: the unreasonable effectiveness of SQLite
    8 projects | news.ycombinator.com | 2 Dec 2025
    A larger pool actually makes the number worse because it adds more contention. I tested it with 64 and all the results were worse. The last example which was 348 TPS drops to 164 TPS!

    Tangentially I also highly recommend this article on pool sizing.

    https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-...

  • A Major Postgres Upgrade with Zero Downtime
    4 projects | news.ycombinator.com | 29 Jan 2025
    > are they using a connection pooler

    We use Hikari [1] an in-process connection pooler. We didn't opt for pgbouncer at al, because we didn't want to add the extra infra yet.

    > since what they did in code can be natively done with PgBouncer, PgCat, et al.

    Can you point me to a reference I could look at, about doing a major version upgrade with PgBouncer et al? My understanding that we would still need to write a script to switch masters, similar to what we wrote.

    > all the active connections

    The active connections we were referring too were websocket connections, we haven't had problems with PG connections.

    Right now the algorithm we use to find affected queries and notify websockets starts to falter when the number of active websocket connections get too high. We're working on improving it in the coming weeks. I'll update the essay to clarify.

    > I did feel for them here:

    Thank you! That part was definitely the most frustrating.

    [1] https://github.com/brettwooldridge/HikariCP

  • Kapper, a Fresh Look at ORMs for Kotlin and the JVM
    4 projects | dev.to | 22 Jan 2025
    // Create a DataSource object, for example using [HikariCP](https://github.com/brettwooldridge/HikariCP) // Kapper is un-opinionated about which pooler, if any you use. val dataSource = HikariDataSource().apply { jdbcUrl = "jdbc:PostgreSQL://localhost:5432/mydatabase" username = "username" password = "password" } // The Kapper API is exposed as an extension of the java.sql.Connection interface: dataSource.connection.use { connection -> // Do database stuff }
  • O que é o hikari pool?
    2 projects | dev.to | 6 Jan 2025
    No contexto específico estava sendo falado sobre o Hikari Connection Pool. Mas, se o Hikari é um Connection Pool, o que seria um "Pool"?
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic HikariCP repo stats
44
21,247
6.5
5 months ago

brettwooldridge/HikariCP is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of HikariCP is Java.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com