Noor
Noor

Reputation: 601

Implement delayed retry message pattern with spring cloud stream rabbit MQ binder

How can I implement delay retry message pattern mentioned in this article https://jack-vanlightly.com/blog/2017/3/24/rabbitmq-delayed-retry-approaches-that-work. I don't want to loose the messages from the dead letter queue and also want retry with backoff. Once number of retries are exhausted I want the messages to be queued in DLQ.

There is a similar question asked on stack overflow but as per the solution it will continuously retry after dlq-ttl expiry. Also, I do not want to loose messages from DLQ after retry attempts are exhausted.

Upvotes: 1

Views: 752

Answers (1)

Oleg Zhurakousky
Oleg Zhurakousky

Reputation: 6106

I believe you are looking for the functionality provided by the RetryTemplate. Is that right?

Upvotes: 0

Related Questions