Closed ethagnawl closed 9 years ago
As per the README:
Every time a queue is bound to the exchange it delivers that last 20 messages to them.
So only during queue.bind a queue will receive messages from the history
Thanks for the prompt response! However, I'm still not seeing the behavior as described, so any suggestions would be greatly appreciated.
To expand on the above:
So only during queue.bind a queue will receive messages from the history
Unless this is intended to be only the first time a queue ever binds (which doesn't seem to be the case), I'm not seeing this behavior.
If my client goes down and then re-subscribes using the same queue name (e.g. "queue-1") once it comes back online, it does not receive the history. If it re-subscribes using a dynamic queue name (e.g. "queue-1-18"), it does receive the history.
queue.bind is idempotent at protocol level, so if the binding is there, the second time the command is kinda ignored. On Thu, Nov 19, 2015 at 1:54 PM Pete Doherty notifications@github.com wrote:
Thanks for the prompt response! However, I'm still not seeing the behavior as described, so any suggestions would be greatly appreciated.
To expand on the above:
So only during queue.bind a queue will receive messages from the history
Unless this is intended to be only the first time a queue ever binds (which doesn't seem to be the case), I'm not seeing this behavior.
If my client goes down and then re-subscribes using the same queue name (e.g. "queue-1") once it comes back online, it does not receive the history. If it re-subscribes using a dynamic queue name (e.g. "queue-1-18"), it does receive the history.
— Reply to this email directly or view it on GitHub https://github.com/videlalvaro/rabbitmq-recent-history-exchange/issues/16#issuecomment-158048652 .
Good to know. Thanks! :+1:
This might 1) be by design or 2) because I'm doing something wrong (probably the case...), but I'm only seeing the message history delivered to new queues.
Here's my code (I'm using the Bunny Ruby client):