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

Persistent messages are not supported. #212

Open
NurdinDev opened this issue Nov 28, 2023 · 2 comments
Open

Persistent messages are not supported. #212

NurdinDev opened this issue Nov 28, 2023 · 2 comments

Comments

@NurdinDev
Copy link

Hi,

By default, any message is non-persistent. To change it to persistent, we must send deliveryMode: 2 during the message publication. However, it appears that there is no way to pass deliveryMode to publish a message, as seen here:

We will open a new pull request for it.

@NurdinDev
Copy link
Author

By the way, amqplib supports two options: persistent and deliveryMode. Persistent is a simple boolean that aligns well with the concept it represents (whether a message is persistent or not).

  • persistent (boolean): If truthy, the message will survive broker restarts provided it’s in a queue that also survives restarts. Corresponds to, and overrides, the property deliveryMode.
  • deliveryMode (boolean or numeric): Either 1 or falsey, meaning non-persistent; or, 2 or truthy, meaning persistent. That’s just obscure though. Use the option persistent instead.
    reference

adenhertog pushed a commit that referenced this issue Dec 13, 2023
* Add a new flag to RabbitMQTransportConfiguration.
* Use the persistent flag when publishing messages to RabbitMQ exchange.
@manarhusrieh
Copy link
Contributor

@adenhertog this issue closed by the PR #213

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

2 participants