ferryman-core
Building blocks of the ferryman reverse proxy, usable on their own:
- Circuit breaker: lock-free closed / open / half-open state machine
with a single half-open probe per cooldown. Every admission returns an
Admissionticket, so results from requests that finish after a trip can't flip the state. - Routing table: longest-prefix match on path-segment boundaries
(
/svc-amatches/svc-a/x, not/svc-ab), hot-swappable througharc-swap. - Config: TOML schema with strict validation; a rebuilt table keeps each surviving upstream's breaker across reloads.
- Health checks: concurrent active probes that feed the breakers.
use ;
let cfg: ConfigToml = from_str?;
let table = build_table?;
let route = table.lookup.expect;
if let Some = route.upstream.try_acquire else
See the architecture notes for how the breaker and reload work.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.