Class ProjectionOptions
- Namespace
- Stratara.Projections.Services
- Assembly
- Stratara.Projections.dll
Configuration for the projection workers, bound from the Projections configuration section.
[ExcludeFromCodeCoverage]
public sealed class ProjectionOptions
- Inheritance
-
ProjectionOptions
- Inherited Members
- Extension Methods
Fields
SectionName
Configuration section name (Projections) used to bind this options object.
public const string SectionName = "Projections"
Field Value
Properties
BatchSize
Number of event-stream entries fetched per batch during projection replay. Defaults to 5000.
public int BatchSize { get; set; }
Property Value
DegreeOfParallelism
Number of parallel consumers the projection worker opens on its subscription. A value that is not a positive number — including the default of null — means one consumer per processor. Bundles about one aggregate are applied one at a time within the process whatever the value; set it to 1 for a worker that must apply every bundle in the order the transport delivers it.
public int? DegreeOfParallelism { get; set; }
Property Value
- int?
IdleDelaySeconds
Idle delay in seconds the worker waits between polls when no work is available. Defaults to 5.
public int IdleDelaySeconds { get; set; }