Skip to main content

Module config

Module config 

Source
Expand description

Configuration for connecting to NATS.

Structs§

CommandRetentionConfig
Retention limits for command request-reply streams.
ConsumerConfig
Controls JetStream consumer behaviour: acknowledgment window, backpressure, poison-pill protection, and internal buffer sizes.
MessageBusConfig
Message-bus tuning carried by a live connection.
NatsClientTls
Options for client TLS authentication with NATS
NatsConfiguration
Configuration for connecting to NATS.

Enums§

NatsConfigurationError
Errors that can occur while building or connecting the NATS client.
StreamRetentionConfig
Controls how long messages are retained in a JetStream stream.

Constants§

DEFAULT_COMMAND_PREFETCH
How many commands one responder pulls from the broker ahead of handling them.
DEFAULT_MAX_ACK_PENDING
How many messages the broker will have unacknowledged with one consumer.
DEFAULT_MAX_DELIVER
How many times a message is redelivered before the broker gives up on it.
DEFAULT_STREAM_BUFFER_SIZE
Capacity of the channel between a subscription’s background forward task and its consumer-facing stream, when ConsumerConfig::stream_buffer_size is None.