Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Exponential backoff for retries in a JetStream Consumer #2748

Closed
ColinSullivan1 opened this issue Dec 15, 2021 · 2 comments
Closed

Comments

@ColinSullivan1
Copy link
Member

Feature Request

Provide an exponential backoff (or equivalent) for retries with a JetStream Consumer.

Use Case:

At scale this will ease pressure on the system and applications that wait to acknowledge for various reasons (out of order messages, grouping messages in a transaction, etc) would behave better.

Proposed Change:

Add a consumer creation options that allows for exponential retry backoff over a period of time.

Who Benefits From The Change(s)?

Any user of NATS JetStream.

Alternative Approaches

Applications would specify a large number of max-redeliveries combined with ack wait and application side logic.

@ColinSullivan1 ColinSullivan1 changed the title Provide Exponential backoff for retries with a JetStream Consumer Provide Exponential backoff for retries in a JetStream Consumer Dec 15, 2021
@andreib1
Copy link

andreib1 commented Dec 16, 2021

If this is for pull, it is a duplicate of #2042

@derekcollison
Copy link
Member

Nak with delay was implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants