Getting Started with AutoBreaker#

AutoBreaker is a circuit breaker for Go with percentage-based (adaptive) thresholds, runtime settings updates and built-in metrics.

See Why AutoBreaker in the README.

Installation#

1
go get github.com/1mb-dev/autobreaker

Requires Go 1.26 or later.

Quick Start#

The Quick Start is in the README; the same code is compiled as the package Example.

How It Works#

The README explains the window, Interval: 0 and low-traffic behavior: see How It Works.

Next Steps#

Configuration#

For detailed configuration options and advanced settings, see the Configuration Guide.

Examples#

Code examples are in the examples directory on GitHub.