Class LoadBalancerProcessor

Assembly: redb.Route.dll

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

Object→LoadBalancerProcessor

Implements

Methods

DisposeAsync()

Stops all cached producers and clears the cache.

public ValueTask DisposeAsync()

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors