Receive all history routed through exchange

37 views
Skip to first unread message

Simone

unread,
May 9, 2011, 3:44:56 AM5/9/11
to rabbitmq...@googlegroups.com
Hello, I am looking for ideas about how to implement this scenario, specifically if there are known patterns in RabbitMQ to do it. I am quite new to this messaging thing so any advice is appreciated.
When publishing messages to a topic exchange I need all subscribers to always have the whole history of the messages published through it. The concept sounds similar to a group chat, so that anytime you join you see the whole story of the chat (since some moment in the past), regardless of whether:

- you were already in when the first message was sent or
- you joined later or
- you join, leave and join

I am wondering if RabbitMQ is suitable to design this scenario or it is a typical use case covered by XMPP and thus I am trying to use RabbitMQ for something it was not designed for.
BTW I also noticed this recent post which sounds interesting: 

Thanks

Alvaro Videla

unread,
May 9, 2011, 6:01:33 AM5/9/11
to rabbitmq...@googlegroups.com
Hi Simone,

Please note that one thing is keeping in memory the last 20 messages that went through an exchange… another much different and difficult is to store somewhere all the messages. 

So that recent history exchange is really *recent*.

In this situation I will go for having a History Queue and then replay that queue for new consumers.

Cheers,

-Alvaro

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Sent form my Nokia 1100



Simone

unread,
May 9, 2011, 6:06:36 AM5/9/11
to rabbitmq...@googlegroups.com
Thanks Alvaro, the History queue was what I was thinking about already, I was just wondering if RabbitMQ had something built-in already, or whether what I'm looking for is something that is native in other systems, for example Jabber with its group chats.
Reply all
Reply to author
Forward
0 new messages