Interface ILoadBalancerStrategy

Assembly: redb.Route.dll

Strategy for selecting a target URI from a list of candidates.
Implementations must be thread-safe for concurrent pipeline usage.

public interface ILoadBalancerStrategy

Methods

ReportFailure(string, Exception)

Reports that a selected endpoint has failed.

void ReportFailure(string endpoint, Exception exception)

ReportSuccess(string)

Reports that a selected endpoint succeeded.

void ReportSuccess(string endpoint)

Select(IExchange, IReadOnlyList<string>)

Selects the next target URI based on strategy logic.

string Select(IExchange exchange, IReadOnlyList<string> endpoints)