# vladmihalcea/flexy-pool

FlexyPool adds metrics and failover strategies to a given Connection Pool, allowing it to resize on demand.

Repository: https://github.com/vladmihalcea/flexy-pool
Canonical: https://ross.abutalabs.com/products/flexy-pool
Language: Java
License: Apache-2.0
License Family: permissive
Topics: connection-pool, java, histogram, dbcp, hikaricp, monitoring, database, flexy-pool
Last push: 2026-02-25T18:40:07+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 35, longevity 100
- inputs: {"age_days": 4587, "days_push": 189, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1180, forks 127 (observed 2026-08-28T04:03:53.579471+00:00)

## What it is
FlexyPool is a Java library that wraps existing JDBC connection pools (HikariCP, DBCP, C3P0, Tomcat CP, Vibur, Druid, Atomikos) to add metrics collection and dynamic resizing strategies. It gathers histograms of connection usage, acquisition times, and pool sizes, and can adjust pool size on demand with failover strategies.

## Use cases
- monitor jdbc connection pool metrics
- auto-resize database connection pool on demand
- collect connection acquisition time histograms
- add failover strategies to hikaricp
- diagnose connection pool sizing issues
- track concurrent database connections in java app

## When to choose
- you use a Java connection pool and need runtime metrics or dynamic resizing
- you want histogram statistics on connection usage without switching pools
- you need pool failover strategies across multiple pool implementations

## When to avoid
- you use a non-JVM language
- your pool already provides sufficient metrics and you don't need dynamic resizing
- you want a standalone connection pool rather than a wrapper

## Facets
- artifact type: library
- maturity: active
- function: monitoring, database, caching, benchmarking
- domain: databases, developer-tools, performance, backend
- platform: jvm, cross-platform
- tags: connection-pool, hikaricp, dbcp, c3p0, jdbc, metrics, histogram, failover-strategies

## Member repositories
- vladmihalcea/flexy-pool (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:53.579471+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:25:22.358798+00:00, confidence not recorded.
  - readme: https://github.com/vladmihalcea/flexy-pool (fetched 2026-08-28T04:03:53.579471+00:00, sha 994b0eae81dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
