hyperlane-plugin-gateway 22.14.1

A reverse proxy and API gateway plugin for the Hyperlane framework with load balancing, path-prefix routing, token-bucket rate limiting, circuit breaking, RFC 9110 hop-by-hop header stripping, and pooled HTTP/1.1 + HTTP/2 upstream forwarding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Upstream selection algorithm used by a [`crate::GatewayRoute`].
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum LoadBalanceStrategy {
    /// Cycles evenly through healthy upstreams.
    #[default]
    RoundRobin,
    /// Selects the healthy upstream with the fewest active in-flight requests.
    LeastConnections,
    /// Distributes requests proportionally to each [`crate::UpstreamTarget`]'s weight.
    WeightedRoundRobin,
    /// Picks two candidate upstreams and selects the one with fewer active connections (`O(1)`).
    PowerOfTwoChoices,
}