Class LoadBalancerProcessor
Processor for the Load Balancer EIP pattern.
Selects an endpoint using a pluggable ,
then delegates the exchange to the selected endpoint's producer.
Producers are lazily created and cached per endpoint URI (thread-safe).
For , automatically retries with the next healthy endpoint on failure.
public sealed class LoadBalancerProcessor : IProcessor, IAsyncDisposable
Inheritance
Implements
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
LoadBalancerProcessor(IRouteContext, IReadOnlyList<string>, ILoadBalancerStrategy, ILogger?)
Creates a new load balancer processor.