Why acknowledge-mode:auto is unsafe? #2549
-
If acknowledge-mode are configured auto,I find SimpleMessageListenerContainer will use channel to ack when the message are processed completely.I don't know why autoAck is considered unsafe,because if the message are not processed completely,SimpleMessageListenerContainer will not ack and the message is still in queue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Where do you see it being described as unsafe? Perhaps you are confused with Spring's The names are unfortunate but, with Spring, RabbitMQ's WIth Spring, AUTO means the container "automatically" acks the message after successful processing. NONE means the broker acks the message after it is sent to the consumer. |
Beta Was this translation helpful? Give feedback.
Where do you see it being described as unsafe?
Perhaps you are confused with Spring's
AcknowledgeMode.AUTO
Vs. RabbitMQ'sautoAck
.The names are unfortunate but, with Spring, RabbitMQ's
autoAck
is configured usingAcknowledgeMode.NONE
.WIth Spring, AUTO means the container "automatically" acks the message after successful processing. NONE means the broker acks the message after it is sent to the consumer.