Skip to main content

load_upstreams

Function load_upstreams 

Source
pub async fn load_upstreams(pool: &PgPool) -> ProxyResult<Vec<Upstream>>
Expand description

Load every upstream, each with its backends.

Two queries rather than one per upstream: the backends come back in a single pass and are grouped in memory. A proxy with a hundred upstreams should not make a hundred and one round trips to start.