[rabbitmq-discuss] Suggestion - Simple Pub/Sub

Oleg Zhurakousky ozhurakousky at vmware.com
Wed Jan 11 16:36:58 GMT 2012


Aamir

If your webapp is Java-based you can also look at Spring Integration http://www.springsource.org/spring-integration framework which provides simple interfacing to both Rabbit via AMQP adapters/channels - http://static.springsource.org/spring-integration/reference/htmlsingle/#amqp and Redis MessageStore and pub-sub channel - http://static.springsource.org/spring-integration/reference/htmlsingle/#redis

The interesting thing here is that you may end up with a hybrid solution where Messages may need be stored before and after they are sent to other subscribers. This is where patterns such as Claim Check comes really handy http://www.eaipatterns.com/StoreInLibrary.html. This way you can have something like this:

(producer) -> store message(any supported datastore) - send(AMQP) . . . . receive(AMQP)(consumer) -> store-message . . . .etc.

The above could be easily assembled with Spring INtegration and you'll have a choice of data-stores (e.g., JDBC, Redis, Mongo etc.)

Cheers
Oleg

----- Original Message -----
From: "Jon Brisbin" <jon at jbrisbin.com>
To: "Alexis Richardson" <alexis at rabbitmq.com>
Cc: rabbitmq-discuss at lists.rabbitmq.com
Sent: Wednesday, January 11, 2012 11:21:49 AM
Subject: Re: [rabbitmq-discuss] Suggestion - Simple Pub/Sub



Aamir, 

If you're thinking about using Riak, I wrote a custom exchange plugin for RabbitMQ that does exactly what you're talking about: it stores every message sent to that exchange in Riak. 

There's a corresponding component that you can install into Riak to send AMQP messages out whenever data is updated (it's a postcommit hook). 



Thanks! 

Jon Brisbin 
http//jbrisbin.com 




From: "Alexis Richardson" <alexis at rabbitmq.com> 
To: "Aamir Khan" <ak4u2009 at gmail.com> 
Cc: rabbitmq-discuss at lists.rabbitmq.com 
Sent: Wednesday, January 11, 2012 9:43:31 AM 
Subject: Re: [rabbitmq-discuss] Suggestion - Simple Pub/Sub 

What kind of storage do you want to use, and for what use cases? 

On Wed, Jan 11, 2012 at 3:27 PM, Aamir Khan <ak4u2009 at gmail.com> wrote: 
> Hi, 
> 
> I am working on a web application in which lots of users can send message to 
> a central server. This central server will push message to all the users 
> based on topic based filtering. This can be easily accomplished by using 
> rabbitMQ. I am using Tornado web server for non blocking asynchronously 
> pushing the messages to clients with rabbitMQ as middle ware for the message 
> queuing. My point lies in that i also need to store each message into 
> database so as to keep record of each. Since the messages won't be very 
> structured data so i am planning to have noSQL storage. Can somebody please 
> suggest some documentation where rabbitMQ is used in addition to database 
> storage ? 
> 
> Well, i also read that i can use Redis Pub/Sub to have this feature of 
> subscribe and publish model, so i am quite confused whether to go for 
> rabbitMQ ? 
> 
> Any suggestions are most welcome. 
> 
> 
> -- 
> Aamir Khan | 3rd Year | Computer Science & Engineering | IIT Roorkee 
> 
> 
> 
> _______________________________________________ 
> rabbitmq-discuss mailing list 
> rabbitmq-discuss at lists.rabbitmq.com 
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss 
> 


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


More information about the rabbitmq-discuss mailing list