Class DeliveryOptions

Assembly: redb.Identity.Core.dll

Delivery of events to webhook subscribers and to the external audit targets through the outbox table
identity_delivery_outbox.

Guarantee: at least once, no order. An event reaches the outbox in the same pass that writes its
audit row, after the request that caused it has committed; a delivery whose success was not
recorded (the node stopped between the answer and the status update) is sent again with the same
X-RedbIdentity-Delivery id. Receivers deduplicate by that id (or by the event's
EventId) and order by the event's Timestamp, not by arrival.

public sealed class DeliveryOptions

Inheritance

Object→DeliveryOptions

Properties

BatchSize

Due rows read per pass. Default: 50.

public int BatchSize { get; set; }

CleanupBatchSize

Rows one cleanup statement deletes, so no statement holds the table long. Default: 1000.

public int CleanupBatchSize { get; set; }

CleanupInterval

How often the cleanup runs (leader-only under a Tsak cluster); 0 or infinite turns it off.

public TimeSpan CleanupInterval { get; set; }

DegradedAfter

The module reports itself Degraded when the oldest undelivered row is older than this: the

public TimeSpan DegradedAfter { get; set; }

DeliveredRetention

How long a delivered row is kept before the cleanup deletes it. Default: 7 days.

public TimeSpan DeliveredRetention { get; set; }

FailedRetention

How long a failed or cancelled row is kept, for inspection and redelivery through the management

public TimeSpan FailedRetention { get; set; }

Lease

How long a claimed row stays reserved to the node that took it. Raised to the delivery timeout

public TimeSpan Lease { get; set; }

MaxParallel

Deliveries in flight at once on one node. Default: 8.

public int MaxParallel { get; set; }

MaxParallelPerDestination

Deliveries in flight at once for one destination: a subscriber that hangs holds at most this

public int MaxParallelPerDestination { get; set; }

PollInterval

How often a node looks for due deliveries. Default: 2 seconds.

public TimeSpan PollInterval { get; set; }

SubscriptionCache

How long the list of enabled subscriptions is kept in memory. The webhook management API

public TimeSpan SubscriptionCache { get; set; }