JetStream Stream Retention Policy Precedence: MaxBytes vs MaxMsgs vs MaxAge
JetStream Stream Retention Policy Precedence When configuring a JetStream stream with multiple retention limits— MaxBytes , MaxMsgs , and MaxAge —the NATS server accepts the settings without error but does not document a clear rule for which limit is evaluated first during message ingestion. This ambiguity can lead to unexpected eviction behavior, especially