RabbitMQ Generic delayed retries fault handler with message TTL #1959
Unanswered
scrocquesel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When an exception occurs, I would like to delayed the retry attempt at rabbitmq side. AFAIK, this can be done in two different ways.
In both cases, the message should be clone and sent to an exchange.
I'm trying to implement such a logic that is more or less the
KafkaDeadLetterQueue
logic in a PublisherDecorator but I'm facing issues.I cannot use a generic
Emitter<?>
(do not compile) and if I try to useEmitter<Object>
it fails to bind the channel at startup. From the Message object, I cannot access the name of the queue the message is read from to use it as a routing key. And I can't found out how to chain the acknowledgement between the new emitted message and the one that should be discarded (I'm really new to reacive stuff).Do you think it is something possible to do with a
PublisherDecorator
andEmitter
? Or a pattern enough generic to be implemented in the connector ?This is what I have right now :
Beta Was this translation helpful? Give feedback.
All reactions