# avast/retry-go

Simple golang library for retry mechanism

Repository: https://github.com/avast/retry-go
Canonical: https://ross.abutalabs.com/products/retry-go
Homepage: http://godoc.org/github.com/avast/retry-go
Language: Go
License: MIT
License Family: permissive
Topics: golang, go, retry, retry-library, hacktoberfest
Last push: 2026-08-21T04:03:36+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 34, longevity 100
- inputs: {"age_days": 3327, "days_push": 12, "days_rel": 282, "gap_med": 136.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2947, forks 177 (observed 2026-08-28T04:07:31.809781+00:00)

## What it is
A simple Go library providing a retry mechanism for retrying failing operations with configurable attempts, delays, and backoff strategies. It offers a minimal API including reusable retriers and data-returning retry helpers.

## Use cases
- retry failed http requests in go
- add exponential backoff to flaky network calls
- retry database or api operations with configurable attempts
- wrap unreliable function calls with automatic retries
- reuse a configured retrier for high-frequency operations

## When to choose
- you need a simple, well-adopted retry library for Go
- you want configurable delays, backoff, and attempt limits with a tiny API
- you need a data-returning retry helper or reusable retrier instances

## When to avoid
- you need advanced circuit-breaking or bulkhead patterns beyond simple retries
- you prefer a more feature-rich backoff framework like cenkalti/backoff
- you want an actively developed fork with recent correctness improvements

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, concurrency
- domain: developer-tools, backend, apis
- platform: go, cross-platform
- tags: retry, backoff, resilience, golang-library

## Member repositories
- avast/retry-go (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.809781+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-30T07:32:46.034540+00:00, confidence not recorded.
  - readme: https://github.com/avast/retry-go (fetched 2026-08-28T04:07:31.809781+00:00, sha aff575d1b941)
  - homepage: http://godoc.org/github.com/avast/retry-go (fetched 2026-08-29T09:48:02.726127+00:00, sha 9b5487a7f873)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:48:02.731162+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/avast/retry-go (fetched 2026-08-29T09:48:02.729098+00:00, sha 63a0278b3211)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:48:02.733098+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
