You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Hi,
By default, any message is
non-persistent
. To change it topersistent
, we must senddeliveryMode: 2
during the message publication. However, it appears that there is no way to passdeliveryMode
to publish a message, as seen here:We will open a new pull request for it.
The text was updated successfully, but these errors were encountered: