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

Prevent resending undelivered message on reconnect #231

Open
terrasoff opened this issue Feb 23, 2022 · 0 comments
Open

Prevent resending undelivered message on reconnect #231

terrasoff opened this issue Feb 23, 2022 · 0 comments

Comments

@terrasoff
Copy link

Is there a possibility to prevent undelivered messages re-publishing once the connection is restored?
I have cases, where I shouldn't re-send undelivered messages.
Add extra connection options probably?

amqp.connect([connectionString], {
   ...
   resendUndeliveredMessagesOnReconnect: false,
));
  • Application is connected to the broker.
  • Connection was gone.
  • Collect undelivered messages if resendUndeliveredMessagesOnReconnect is true.
  • Undelivered messages are collected.
  • Connection is restored.
  • Undelivered messages are published if resendUndeliveredMessagesOnReconnect is true.
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

1 participant