# resource-pool

> Striped resource pooling for Haskell, such as database connection pools

Source: https://talira.ai/catalog/resource-pool-sze7b6r6
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), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Scrive](https://talira.ai/orgs/scrive.md)

resource-pool is a high-performance striped pool for [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) that manages flexibly sized collections of resources such as database connections, built on `QSem`. Pools are configured with a creation and destruction action, a size, an idle timeout, stripe count and labels; its README asks library authors to accept a `PoolConfig` builder rather than wrap the settings themselves. Originally by Bryan O'Sullivan, it's maintained by Andrzej Rybczak under Scrive.

## Links

- GitHub: https://github.com/scrive/pool

## Problems it solves

- pool database connections in a Haskell web app
- limit concurrent connections to Postgres from Haskell
- reuse expensive resources across threads in Haskell

## Features

- striped pools for less contention
- configurable size, idle timeout and stripes
- labels for pools
- any resource with create and destroy actions

## Trust

Overall: 0.31 out of 1.
Signals: maintenance 0.45, adoption 0.29, momentum 0.04, community 0.45, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- 26 GitHub stars
- 12 contributors
- backed by Scrive

## Sources

[^1]: https://github.com/scrive/pool/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/scrive/pool/blob/master/resource-pool.cabal (checked 29 Nov 2026)
