amqp-bunny
amqp-bunny copied to clipboard
Question: How can I make a subscription wait for the next message to be consumed?
I have the following problem: There are several queues with which third-party providers are requested via REST. A floodwait can occur and so the consumption of the affected queue must be interrupted for a specified time. In my setup, I have several subscribers in parallel for one consumer.
I think a fixed sleep in the subscriber leads to the heartbeat being interrupted & the connection being lost, as well as the other subscribers being hard-blocked.
Stopping the consumer regularly to take the subscribers in and out can't be the solution either, do you have any suggestions or ideas?