[rabbitmq-discuss] WebSockets and Rabbit-mq
Jason J. W. Williams
jasonjwwilliams at gmail.com
Wed Oct 19 21:59:24 BST 2011
Hi Paul,
Meant to paste these links in. The Rabbit guys have a good tutorial on
RPC here: http://www.rabbitmq.com/tutorials/tutorial-six-python.html
Also, if you're interested Alvaro and my book have a big section on
replies and RPC: http://manning.com/videla.
-J
On Wed, Oct 19, 2011 at 2:23 PM, Paul Cowan <dagda1 at scotalt.net> wrote:
> Hi,
>
> I am struggling to work out how I can communicate between rabbitmq and
> em-websocet.
>
> My are requirements for the piece of work are this.
>
> I want a user to be able to kick off from a web page a long running process
> that could take at least 20 minutes to finish.
> I want the process to complete even if the user closes down the browser.
> While the user still has the browser open, I want the user to be able to get
> real time updates of the long running process displayed in the browser.
>
> My thoughts are that the client script on the page will create a websocket
> connection that will kick off an EventMachine-Websocket instance on the
> server (I am using Ruby on Rails).
> The websocket instance will subscribe to an AMQP queue that will complete
> the long running process even if the browser is closed down.
>
> I am struggling with how the em-websocket instance will receive updates of
> the work that is being done which is effectively inserts into a database.
>
> Do I need 2 queues? One to start the process and one to receive updates or
> is there a better way?
>
> Can anybody shed any advice on this situation? Has anybody done anything
> similar?
>
> Cheers
>
> Paul Cowan
>
> Cutting-Edge Solutions (Scotland)
>
> http://thesoftwaresimpleton.com/
>
>
> _______________________________________________
> 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