[rabbitmq-discuss] New Custom Exchagne: Last History

39 views
Skip to first unread message

Alvaro Videla

unread,
May 6, 2011, 9:51:34 AM5/6/11
to RabbitMQ List List
Hi list,

I created a new custom exchange called Recent History Exchange.

The use case for what I created it is for a Web Chat that I'm implementing.

Each user has an "anonymous" exclusive/auto delete queue that is bound to a "group-chat" exchange when they join the chat room.

The idea is that the last 20 messages that went through this exchange are kept in Mnesia, so whenever there's a new Binding, that queue will get those messages. This will make a user that joins the chat will get the last messages so he has a context of the conversations.

The exchange is heavily inspired in the Last Value Cache exchange: https://github.com/squaremo/rabbitmq-lvc-plugin

The custom exchange type is: x-recent-history

And here's the code: https://github.com/videlalvaro/rabbitmq-recent-history-exchange

Soon I will open source the webchat application so there will be an example on how to use it.

Cheers,

Alvaro

Sent form my Nokia 1100

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

Alexis Richardson

unread,
May 6, 2011, 10:19:34 AM5/6/11
to Alvaro Videla, RabbitMQ List List
very cool!
Reply all
Reply to author
Forward
0 new messages