Class ProjectionRetryOptions
- Namespace
- Excalibur.Data.ElasticSearch
- Assembly
- Excalibur.Data.ElasticSearch.dll
Configures bounded retries for create-only projection error-record persistence.
public sealed class ProjectionRetryOptions
- Inheritance
-
ProjectionRetryOptions
- Inherited Members
Properties
BaseDelay
Gets the base delay for exponential backoff.
public TimeSpan BaseDelay { get; init; }
Property Value
- TimeSpan
The base delay for exponential backoff.
Enabled
Gets a value indicating whether retry is enabled for projection error-record persistence.
public bool Enabled { get; init; }
Property Value
- bool
A value indicating whether retry is enabled for projection error-record persistence.
MaxBulkAttempts
Gets the maximum total attempts, including the initial request, for bulk error records.
public int MaxBulkAttempts { get; init; }
Property Value
- int
The maximum total attempts, including the initial request, for bulk error records.
MaxDelay
Gets the maximum delay between retries.
public TimeSpan MaxDelay { get; init; }
Property Value
- TimeSpan
The maximum delay between retries.
MaxIndexAttempts
Gets the maximum total attempts, including the initial create, for a single error record.
public int MaxIndexAttempts { get; init; }
Property Value
- int
The maximum total attempts, including the initial create, for a single error record.
UseExponentialBackoff
Gets a value indicating whether to use exponential backoff.
public bool UseExponentialBackoff { get; init; }
Property Value
- bool
A value indicating whether to use exponential backoff.
UseJitter
Gets a value indicating whether retry delays are randomized to decorrelate concurrent clients.
public bool UseJitter { get; init; }
Property Value
Remarks
Replaces a JitterFactor double that scaled a symmetric band -- delays varied by plus or minus
the fraction around the nominal. A band keeps its mass near the nominal, so clients that failed in
the same instant stayed clustered and retried together; the randomisation added noise without
decorrelating anything, which is the only reason to apply it. The strategy now uses the resilience
pipeline's own jitter, which reaches the low end of the interval.