I have a idea for get the delivery count from broker. When consumer send a 
redeliveryUnackMessages request then broker process the request, broker can 
return the messageIds(if consumer can contains the message payload) which 
should send to the DLQ.

For this solution, broker must keep the max redelivery count per subscription. 
A message possible send to different consumer by dispatcher, if keep max 
redelivery count in consumer, it's difficult to confirm how many times for 
redelivery. I think that the max redelivery count should use the last consumer 
config in a subscription.

I think this solution is smaller spending.

[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2400 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to