# gojek/heimdall

An enhanced HTTP client for Go

Repository: https://github.com/gojek/heimdall
Canonical: https://ross.abutalabs.com/products/gojek-heimdall
Homepage: http://gojek.tech
Language: Go
License: Apache-2.0
License Family: permissive
Topics: circuit-breaker, hystrix, retries, backoff, scale, distributed-systems, httpclient, golang
Last push: 2026-07-01T05:27:27+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 91, longevity 100
- inputs: {"age_days": 3148, "days_push": 63, "days_rel": 63, "gap_med": 19, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2774, forks 207 (observed 2026-08-28T04:07:19.165673+00:00)

## What it is
Heimdall is an enhanced HTTP client library for Go that wraps the standard net/http client with resilience features. It provides hystrix-like circuit breakers, configurable synchronous retries with custom backoff strategies, and per-request timeouts via a fluent interface.

## Use cases
- make http requests with automatic retries and backoff in go
- add a circuit breaker to outbound http calls
- prevent cascading failures when calling flaky downstream services
- set per-request timeouts on an http client
- implement custom retry strategies for http requests
- build resilient microservice-to-microservice communication

## When to choose
- you need retries, backoff, or circuit breaking around Go http calls
- you want a drop-in enhanced client over net/http with a fluent API
- you need per-request timeout control in a high-volume service

## When to avoid
- you only need simple one-off http requests without resilience features
- you need async or distributed retries rather than in-memory synchronous ones
- your project is not written in Go

## Facets
- artifact type: library
- maturity: stable
- function: http-client, middleware
- domain: backend, microservices, developer-tools
- platform: go
- tags: circuit-breaker, retries, backoff, hystrix, resilience, fluent-interface

## Member repositories
- gojek/heimdall (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:19.165673+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-30T08:16:35.165562+00:00, confidence not recorded.
  - readme: https://github.com/gojek/heimdall (fetched 2026-08-28T04:07:19.165673+00:00, sha a051d82fb680)
- Data as of 2026-08-30T08:39:29.467469+00:00.
