GitHub user Jason918 added a comment to the discussion: Need max redelivery 
count at message level.

> The consumer I initially created is for the main queue and I don't think it 
> would work. Any thoughts on this?

The default retry-queue is created and subscribed internally. So when you call 
`consumer.receive()`, you may receive message from retry-queue ,and you can ack 
the message like normal messages. Just try it out :)

> Also, what if acknowledging msg fails, should we do negativeAck or 
> reconsumeLater to replay the msg again?

This depends on the failure reason. You can retry ack if it's network issue, or 
just log the error to see what's going on.
`negativeAck` or `reconsumeLater` seems not necessary in your case, since you 
either finish processed the message or have sent the message to your own DLQ.

GitHub link: 
https://github.com/apache/pulsar/discussions/17626#discussioncomment-3696723

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@pulsar.apache.org

Reply via email to