Class RandomStrategy

Assembly: redb.Route.dll

Random load balancer strategy.
Selects a random endpoint for each exchange. Stateless and thread-safe.

public sealed class RandomStrategy : ILoadBalancerStrategy

Inheritance

Object→RandomStrategy

Implements

Methods

Select(IExchange, IReadOnlyList<string>)

Selects the next target URI based on strategy logic.

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