I am using spring-amqp and a dead letter queue to deal with failed messages but I want to increment the ttl for each retry(like a exponential backoff).
I have tried to get the message in a custom error handler and add the expiration header so rabbit can use this value instead of the ttl but the custom header is not published.
Is it possible to do that?
I have seen the RejectAndDontRequeueRecoverer but I am not sure if it is the best way to do that or even it is possible.
Roberto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.