# mperham/connection_pool

Generic connection pooling for Ruby

Repository: https://github.com/mperham/connection_pool
Canonical: https://ross.abutalabs.com/products/connection_pool
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-06-22T07:55:12+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 35, longevity 100
- inputs: {"age_days": 5590, "days_push": 72, "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 1692, forks 144 (observed 2026-08-28T04:05:22.700592+00:00)

## What it is
A generic connection pooling library for Ruby that manages a shared pool of objects (network clients, connections) across threads and fibers. It provides blocking checkout with timeouts, a wrapper for easy migration, and shutdown/reload lifecycle support.

## Use cases
- pool redis connections across threads in ruby
- share a memcached client among fibers
- limit concurrent connections to a network service
- migrate a global connection to a pool gradually
- fail fast when pooled resources are exhausted
- pool any ruby client object, not just databases

## When to choose
- you need to share limited connections (redis, memcached, http clients) across threads or fibers
- your client library lacks its own pooling
- you want timeout-based backpressure when the pool is exhausted

## When to avoid
- your ORM or client (ActiveRecord, MongoDB driver) already provides its own pool
- you need pooling in a language other than ruby

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, database-driver, developer-tools
- domain: developer-tools, backend, databases, performance
- platform: ruby
- tags: connection-pooling, threading, fibers, redis, memcached

## Member repositories
- mperham/connection_pool (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.700592+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-30T03:38:14.592385+00:00, confidence not recorded.
  - readme: https://github.com/mperham/connection_pool (fetched 2026-08-28T04:05:22.700592+00:00, sha efab0005c1ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
