No description
  • Go 91.5%
  • Makefile 6.6%
  • Dockerfile 1.9%
Find a file
zemdregon bd3357b914
Some checks are pending
CI / test (push) Waiting to run
CI / lint (push) Waiting to run
CI / build (push) Waiting to run
CI / docker (push) Blocked by required conditions
chore(deps): bump docker/setup-buildx-action to v4
Self-hosted CI workflows only.
2026-08-10 18:13:14 -05:00
.github/workflows chore(deps): bump docker/setup-buildx-action to v4 2026-08-10 18:13:14 -05:00
cmd/module chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:18 -05:00
internal Advertise settings capability (v0.1.4). 2026-08-10 04:52:38 -05:00
.env.example chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:18 -05:00
.gitignore Initial commit 2026-07-03 12:02:56 -05:00
.golangci.yml docs: CHANGELOG/COMPATIBILITY for circuitbreaker v0.1.1 (#4) 2026-08-09 20:28:23 -05:00
CHANGELOG.md Advertise settings capability (v0.1.4). 2026-08-10 04:52:38 -05:00
COMPATIBILITY.md docs: CHANGELOG/COMPATIBILITY for circuitbreaker v0.1.1 (#4) 2026-08-09 20:28:23 -05:00
Dockerfile Initial commit 2026-07-03 12:02:56 -05:00
go.mod Add SettingsProvider for failure threshold and cooldown. (#6) 2026-08-10 03:29:05 -05:00
go.sum Add SettingsProvider for failure threshold and cooldown. (#6) 2026-08-10 03:29:05 -05:00
LICENSE chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:18 -05:00
Makefile Initial commit 2026-07-03 12:02:56 -05:00
muxcore.json Advertise settings capability (v0.1.4). 2026-08-10 04:52:38 -05:00
README.md chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:18 -05:00

Circuit Breaker Simple

In-memory circuit breaker with configurable failure threshold and auto-recovery cooldown for protecting remote calls from cascading failures.

Key Features

  • Configurable failure threshold before circuit opens
  • Auto-recovery cooldown into half-open, then closed on success or re-open on failure
  • Per-circuit state tracking by key
  • gRPC service (State, RecordSuccess, RecordFailure, Reset)

Configuration

Env Var Default Description
CB_GRPC_ADDR :9640 gRPC listen address
CB_FAILURE_THRESHOLD 5 Failures before circuit opens
CB_COOLDOWN 30s Duration before half-open state
MUXCORE_INSECURE_DISABLE_TLS unset Set true to disable TLS for module SDK

Capability

circuitbreaker, circuitbreaker.simple — In-memory circuit breaker

Dependencies

  • github.com/Muxcore-Media/core — MuxCore contracts, proto, module SDK