# eapache/go-resiliency

Resiliency patterns for golang

Repository: https://github.com/eapache/go-resiliency
Canonical: https://ross.abutalabs.com/products/go-resiliency
Homepage: https://godoc.org/github.com/eapache/go-resiliency
Language: Go
License: MIT
License Family: permissive
Topics: resiliency, go, golang, resiliency-patterns
Last push: 2025-02-23T20:11:08+00:00

## Health v2 (maintenance only)
Score: 26/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 8, release rhythm 8, longevity 100
- inputs: {"age_days": 4295, "days_push": 556, "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 2370, forks 151 (observed 2026-08-28T04:06:41.710057+00:00)

## What it is
A Go library implementing common resiliency patterns such as circuit breaker, retrier, deadline/timeout, batching, and semaphore. It is inspired by Netflix Hystrix and Shopify Semian.

## Use cases
- add circuit breaker to go service calls
- retry failed http requests in golang
- add timeout wrapper around function calls
- batch concurrent requests in go
- limit concurrency with a semaphore in go
- make go clients resilient to downstream failures

## When to choose
- you want small, focused, dependency-free resiliency primitives in Go
- you need circuit breaker, retry, timeout, batching, or semaphore patterns without a full service mesh
- you prefer Hystrix-style patterns as simple Go packages

## When to avoid
- you need a full-featured resilience framework with metrics dashboards and config servers
- you are not writing Go
- you want automatic instrumentation of HTTP clients or service mesh-level traffic management

## Facets
- artifact type: library
- maturity: stable
- function: middleware, concurrency, error-handling
- domain: developer-tools, backend, microservices
- platform: go
- tags: resiliency-patterns, circuit-breaker, retry, timeout, batching, semaphore, hystrix-inspired

## Member repositories
- eapache/go-resiliency (main) score 26

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.710057+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-30T02:35:24.751645+00:00, confidence not recorded.
  - readme: https://github.com/eapache/go-resiliency (fetched 2026-08-28T04:06:41.710057+00:00, sha ee6efb2920c7)
  - homepage: https://godoc.org/github.com/eapache/go-resiliency (fetched 2026-08-29T10:16:15.265212+00:00, sha 92228780493d)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T10:16:15.276342+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/eapache/go-resiliency (fetched 2026-08-29T10:16:15.274459+00:00, sha b81e16026033)
  - site_page: https://go.dev/project (fetched 2026-08-29T10:16:15.279566+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
