Skip to main content

Module routing_port

Module routing_port 

Source
Expand description

Routing superset — load-balancing strategies, circuit breakers, weighted fallback.

Pure types and selection logic live here (no I/O). Adapters such as routing-phenotype-router and the legacy omniroute-adapter wire these primitives to real providers.

Structs§

CircuitBreaker
Per-target circuit breaker with lazy recovery on read.
CircuitBreakerConfig
Thresholds controlling circuit-breaker transitions.
FallbackEntry
One entry in an ordered fallback chain.
RoutingPoolState
Mutable routing pool state (cursors, counters, per-target health).
RoutingSelector
Pure selection helpers — deterministic given inputs and mutable state.
RoutingSuperset
Bundled routing superset: pool load-balancing with fallback chain and health tracking.
RoutingTarget
A routable engine/model target in a load-balanced pool.
SupersetRoutingDecision
A routing decision enriched with the chosen target id.
TargetHealth
Health and load counters for a single target.

Enums§

CircuitState
Circuit breaker state for a single target.
RoutingStrategy
Load-balancing strategy over a pool of candidate targets.