Class ScatterGatherProcessor
Processor for the Scatter-Gather EIP pattern.
Sends the exchange to multiple endpoints (scatter phase), collects all responses,
and aggregates them using a mandatory pair-wise strategy (gather phase).
Supports static and dynamic recipient lists, parallel/sequential processing,
timeout with partial-result aggregation, and configurable error handling.
public sealed class ScatterGatherProcessor : IProcessor, IAsyncDisposable
Inheritance
Implements
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
ScatterGatherProcessor(IRouteContext, Func<IExchange, IEnumerable<string>>, Func<IExchange, IExchange, IExchange>, bool, int, bool, TimeSpan, ILogger?)
Creates a scatter-gather processor with dynamic recipients resolved at runtime.
ScatterGatherProcessor(IRouteContext, IReadOnlyList<string>, Func<IExchange, IExchange, IExchange>, bool, int, bool, TimeSpan, ILogger?)
Creates a scatter-gather processor with static recipients.