# jolestar/go-commons-pool

a generic object pool for golang

Repository: https://github.com/jolestar/go-commons-pool
Canonical: https://ross.abutalabs.com/products/go-commons-pool
Language: Go
License: Apache-2.0
License Family: permissive
Topics: objectpool, golang, commons-pool
Last push: 2023-05-30T21:57:20+00:00

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

## Adoption (not part of the score)
Stars 1239, forks 149 (observed 2026-08-28T04:04:05.910512+00:00)

## What it is
A generic object pool library for Go, a direct rewrite of Apache Commons Pool. It supports custom pooled object factories and rich lifecycle configuration including LIFO/FIFO ordering, validation, eviction, and blocking behavior.

## Use cases
- pool reusable database or network connections in Go
- limit concurrent resource usage with a bounded object pool
- reuse expensive objects instead of allocating repeatedly
- control object lifecycle with eviction and idle validation
- port Apache Commons Pool semantics to a Go project

## When to choose
- you need a battle-tested, Apache Commons Pool-style object pool in Go
- you need fine-grained control over pool sizing, eviction, and validation
- you want LIFO/FIFO pooling with blocking borrow semantics

## When to avoid
- you only need a simple channel-based semaphore or sync.Pool for temporary buffers
- your target runtime is not Go
- you need a connection pool specific to a particular database driver

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, concurrency, developer-tools
- domain: developer-tools, backend, performance
- platform: go, cross-platform
- tags: object-pool, resource-pooling, apache-commons-pool, golang

## Member repositories
- jolestar/go-commons-pool (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.910512+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-30T05:09:58.214781+00:00, confidence not recorded.
  - readme: https://github.com/jolestar/go-commons-pool (fetched 2026-08-28T04:04:05.910512+00:00, sha d3e721279dd1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
