[rabbitmq-discuss] Possible to keep consumed messages for certain period time (to replay..etc)

Simon MacMullen simon at rabbitmq.com
Fri Mar 9 12:01:45 GMT 2012

There's no exact feature like that.

The closest thing would be to route messages to two queues, one for 
normal consuming and one for replay. The replay queue could have a 
message ttl so that it doesn't expand indefinitely.

You may also find Mike's Last Value Cache exchange interesting:


Cheers, Simon

On 08/03/12 09:25, Qing Yan wrote:
> Hi,
>     I am wondering in Rabbit MQ, can consumed messages be kept for
> certain period of time, so that it can be replayed later?
> According to the doc:
> :when should the AMQP broker remove messages from queues? The AMQP 0-9-1
> specification proposes two choices:
>     * After broker sends a message to an application (using either
>       basic.deliver or basic.get-ok AMQP methods).
>     * After the application sends back an acknowledgement (using
>       basic.ack AMQP method).
> (http://www.rabbitmq.com/tutorials/amqp-concepts.html)
> It seems not possible to do so. Basically what we need is :
> 1)  User to decide when to remove message from queue
> 2)  Replay message that has been consumed.
> Is Rabbit MQ suitable tool for such requirements?
> Thanks
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Simon MacMullen
RabbitMQ, VMware

More information about the rabbitmq-discuss mailing list