Skip to content

FallbackStrategy

Defined in: src/models/routing/fallback-strategy.ts:5

Selects the healthiest candidate not yet tried since the last success.

new FallbackStrategy(): FallbackStrategy;

FallbackStrategy

select(context): Promise<RoutingCandidate>;

Defined in: src/models/routing/fallback-strategy.ts:12

Select the least-failed available candidate, breaking ties by declaration order.

ParameterTypeDescription
contextRoutingContextCurrent routing context

Promise<RoutingCandidate>

The selected candidate, or undefined when the round is exhausted

RoutingStrategy.select