Replies: 3 comments 13 replies
-
@plewam are you sure you want to "connect" manually (that is, roll your own connection recovery)? If you do and realize the amount of effort it will take, please keep in mind that connection recovery is not initiated by consumers. It is initiated by something that reacts to connection shutdown events. |
Beta Was this translation helpful? Give feedback.
-
@plewam this seems like a reasonable request. I will see if the Java client provides this information (just out of curiosity). @michaelklishin's point is valid - connection and topolgy recovery is already implemented in this client library. Have you tried it and found it insufficient for your use case? |
Beta Was this translation helpful? Give feedback.
-
Hello @plewam - I will have a new alpha release for you to test soon. With regard to I'm going to close this discussion, but let me know if this meets your requirements. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I subscribe to the
Shutdown
event of anEventingBasicConsumer
. However when I receive the event I cannot track back which consumer was cancelled as I don't have the consumer tag available within theShutdownEventArgs
. This way I cannot evaluate the shutdown reason and eventually reconnect. Would it be possible to add the consumerTag?I use the a manual ack of rmq messages as a method of throttling if my consumer is not able to process the messages quick enough into a sink (Database in this scenario).
After 30 minutes, rmq cancels my consumer if I have not ack'ed the message. In case of a database maintenance, restart this might happen. In this scenario I would like to reconnect... But I don't know which consumer to reconnect...
On the other hand I also receive the
ConsumerCancelled
event, but this one only contains theconsumerTag
and not the shutdown reason.Beta Was this translation helpful? Give feedback.
All reactions