circuit-breaker

command
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 7 Imported by: 0

README

circuit-breaker

A circuit breaker opens after chaos makes a dependency fail repeatedly.

newEngine installs an always-fire error rule on OpHTTPClient. The breaker (threshold 3) opens after three failed calls; the remaining seven of ten requests short-circuit without touching the dependency, so the rule fires exactly three times.

Documentation

Overview

Command circuit-breaker shows a circuit breaker opening after chaos injects repeated failures, after which calls short-circuit instead of calling the failing dependency. Run with `go run .`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL