Repository

codemartial/levee

Levee

Self-tuning Circuit Breaker and Concurrency Limiter

9stars

Open github.com

codemartial/levee

Levee

A self-tuning circuit breaker and concurrency limiter for Go services.

Visit project

Show me a random project

First shared
Jul 12, 2026
HN activity
30

Show HN@code_martialJul 12, 2026

Show HN: Levee – a self-tuning circuit breaker and concurrency limiter for Go

Rate limiters and circuit breakers work wonderfully well when they’re configured for the load and available capacity. But load, capacity, and latency drift over time, and keeping those settings current requires continuous effort. So I built Levee to be a hands-off, adaptive, easy to configure traffic governor. Levee is configured with a success-rate target and timeout. It then continuously monitors the workload performance characteristics to detect downstream capacity exhaustion or failures. It can also spot a surge from growing concurrency before failures arrive. It runs in-process, uses a small, fixed amount of memory, has zero dependencies, and processes millions of requests per second. In a deterministic 10-node mesh simulation, Levee outscored carefully tuned static rate limiters/breakers deployed throughout the mesh, while recording fewer failures and no node crashes.

Community

Hacker News discussion

Loading the thread…