Does NATS support exponential backoff consumption retry? #6350
Answered
by
jnmoyne
penghuazhou
asked this question in
Q&A
-
If the consumption fails, I hope to exponentially retreat and retry the consumption. |
Beta Was this translation helpful? Give feedback.
Answered by
jnmoyne
Jan 10, 2025
Replies: 1 comment
-
If you do not ack the message (before the consumer's AckWait timeout happens) then you can specify a series of backoff times in the consumer's configuration (see 'Backoff' in https://docs.nats.io/nats-concepts/jetstream/consumers#general). If you explicitly give up on processing the message using the 'nack' (negative ack) then you can specify the backoff period using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jnmoyne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you do not ack the message (before the consumer's AckWait timeout happens) then you can specify a series of backoff times in the consumer's configuration (see 'Backoff' in https://docs.nats.io/nats-concepts/jetstream/consumers#general).
If you explicitly give up on processing the message using the 'nack' (negative ack) then you can specify the backoff period using
nakWithDelay