Property Info
Info
Consumer info object as retrieved from NATS JetStream server at the time this object was created, updated or refreshed.
public ConsumerInfo Info { get; }
Property Value
Remarks
Warning: Avoid calling RefreshAsync(CancellationToken) or GetConsumerAsync(string, string, CancellationToken) repeatedly in a loop
to refresh this property. Each call issues a $JS.API.CONSUMER.INFO request to the server, which can cause
significant load on the NATS cluster at scale, lead to API timeouts, and degrade overall system performance.
Instead, prefer using Metadata, when available, on each received message. When
Metadata is not null, it exposes
NumPending, NumDelivered,
Sequence, and Timestamp
without requiring a server round-trip. Callers should check that Metadata is not null before
accessing these properties.