Class JetStreamPositionerOptions
Settings of the JetStreamConsumerGroupPositioner. The defaults suit a NATS in the same cluster; nothing needs configuring.
public sealed record JetStreamPositionerOptions : IEquatable<JetStreamPositionerOptions>
- Inheritance
-
JetStreamPositionerOptions
- Implements
- Inherited Members
Properties
ConsumerDiscoveryInterval
How often the positioner looks for the consumer Dapr adds for a new subscription. daprd adds it within milliseconds of the gateway's subscribe, and the sooner it is seen the less likely another gateway pod's consumer for the same topic appears in the same look (then neither can be told apart).
public TimeSpan ConsumerDiscoveryInterval { get; init; }
Property Value
ConsumerDiscoveryTimeout
How long the positioner looks for that consumer: generous, since daprd can be
slow to subscribe right after it started. Past it a subscriber that falls
behind ends with RESOURCE_EXHAUSTED.
public TimeSpan ConsumerDiscoveryTimeout { get; init; }
Property Value
PendingPage
Messages per direct get when the pending entries of a snapshot are listed. They are read only for their sequence numbers, so pages stay small: batch entries are up to DefaultMaxBytes each.
public int PendingPage { get; init; }
Property Value
ReadPage
Messages per direct get of a replay_since read, as the Redis positioner's XRANGE pages.
public int ReadPage { get; init; }
Property Value
RequestTimeout
How long a direct get may wait for the server's next reply. A reply comes within milliseconds; the bound only keeps a lost one from holding a reader, and the caller's own timeout is usually shorter.
public TimeSpan RequestTimeout { get; init; }