# connection_pool

> Generic connection pooling for Ruby

Source: https://talira.ai/catalog/connection-pool-89gez13q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / connection pools](https://talira.ai/categories/libraries/databases/connection-pools), [libraries / concurrency](https://talira.ai/categories/libraries/concurrency), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Mike Perham](https://talira.ai/orgs/mike-perham.md)

connection_pool is a generic connection pool for Ruby that shares objects such as Redis, Dalli or other network clients among an application's threads or fibers. `with` checks out a connection and blocks, up to a timeout, when all are in use; `ConnectionPool::Wrapper` wraps a single global connection to ease migration; pools can be shut down or reloaded, and reload themselves after a fork.

## Links

- GitHub: https://github.com/mperham/connection_pool

## Problems it solves

- share a few Redis connections between my Ruby threads
- limit how many memcached connections my Ruby app opens
- stop threads fighting over one global client connection

## Features

- pool any client object with a size and timeout
- with blocks until a connection is free, or raises TimeoutError
- ConnectionPool::Wrapper for migrating a global connection
- shutdown and reload, with automatic reload after fork

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.61, adoption 0.65, momentum 0.30, community 0.73, backing 0.30, extensibility 0.00.

- last commit 13 days ago
- 2 commits in the last 90 days
- 1.7k GitHub stars
- 64 contributors
- backed by Mike Perham

## Sources

[^1]: https://github.com/mperham/connection_pool/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/mperham/connection_pool/blob/main/LICENSE (checked 29 Nov 2026)
