[rabbitmq-discuss] Subscription Recovery
Simon MacMullen
simon at rabbitmq.com
Wed Jul 11 11:51:16 BST 2012
On 11/07/12 10:50, liny wrote:
> I am newbie to RabbitMQ and have questions.
> Does RabbitMQ have feature like
> http://activemq.apache.org/subscription-recovery-policy.html ActiveMQ
> subscription-recovery-policy ?
> I need subscription recovery to let new or existed subscriber to get last
> message from publisher, even restart MQ server, but ActiveMQ can't provide
> recover after MQ server is restarted.
There's no exact equivalent of that feature, but other features may give
you what you want:
Assuming each subscriber needs its own set of messages (i.e. you're not
round-robinning messages among subscribers) then they should each
declare their own queue. This queue will still exist when they are
disconnected, and if durable will exist across broker restarts.
By default messages will back up forever while the subscriber is
disconnected; the x-message-ttl argument can be used to prevent messages
above a certain age from being kept.
If you need subscribers to see messages that were sent before they ever
connected to the broker in the first place, then the LVC plugin may
help, although it is somewhat limited:
https://github.com/simonmacmullen/rabbitmq-lvc-plugin
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list