# failsafe-go/failsafe-go

Fault tolerance and resilience patterns for Go

Repository: https://github.com/failsafe-go/failsafe-go
Canonical: https://ross.abutalabs.com/products/failsafe-go
Homepage: https://failsafe-go.dev
Language: Go
License: MIT
License Family: permissive
Topics: resilience, resiliency-patterns, retry, circuit-breaker, rate-limiter, timeout, bulkhead, fallback, hedge, cache, adaptive-limiter, adaptive-throttler
Last push: 2026-08-16T22:19:00+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 88
- inputs: {"age_days": 1239, "days_push": 17, "days_rel": 17, "gap_med": 12, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2245, forks 46 (observed 2026-08-28T04:06:30.125436+00:00)

## What it is
Failsafe-go is a Go library for building fault-tolerant applications by wrapping functions with composable resilience policies. It provides retry, fallback, circuit breaker, rate limiter, bulkhead, timeout, hedge, cache, and adaptive load-limiting policies.

## Use cases
- retry failed HTTP requests with backoff
- add a circuit breaker around flaky downstream services
- limit concurrent calls with a bulkhead
- add timeouts to slow operations
- fall back to a backup connection on failure
- rate limit outgoing API calls
- hedge slow requests with duplicate calls
- compose multiple resilience policies around a function

## When to choose
- you need composable resilience patterns in Go
- you want retry, circuit breaker, and rate limiting in one library
- you need adaptive load limiting based on latency or failures
- you want synchronous and asynchronous execution with policies

## When to avoid
- you need service-mesh-level resilience across services
- you want a proxy-based solution without code changes
- your stack is not Go

## Facets
- artifact type: library
- maturity: active
- function: rate-limiting, caching, concurrency, error-handling, developer-tools
- domain: developer-tools, backend, microservices, performance
- platform: go, cross-platform
- tags: resilience, retry, circuit-breaker, bulkhead, timeout, fallback, hedge, adaptive-throttling, fault-tolerance

## Member repositories
- failsafe-go/failsafe-go (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:30.125436+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:44:00.102663+00:00, confidence not recorded.
  - readme: https://github.com/failsafe-go/failsafe-go (fetched 2026-08-28T04:06:30.125436+00:00, sha af5c31291a97)
  - homepage: https://failsafe-go.dev (fetched 2026-08-29T10:24:12.082365+00:00, sha 0c4d6af910d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
