Hi,<div><br></div><div><span class="Apple-style-span" style="font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; background-color: rgb(255, 255, 255); "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; ">
I�am struggling to work out how I can communicate between rabbitmq and em-websocet.</p></span><font class="Apple-style-span" face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span class="Apple-style-span" style="font-size: 14px; line-height: 18px;"><br>
</span></font><span class="Apple-style-span" style="font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; background-color: rgb(255, 255, 255); "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; clear: both; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; ">
My are requirements for the piece of work are this.<br></p><ol><li>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.</li><li>I want the process to complete even if the user closes down the browser.</li>
<li>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.<br><br>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).<br>
The websocket instance will subscribe to an AMQP queue that will complete the long running process even if the browser is closed down.�<br><br>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.<br>
<br>Do I need 2 queues? �One to start the process and one to receive updates or is there a better way?�<br><br>Can anybody shed any advice on this situation? �Has anybody done anything similar?</li></ol><p></p></span></div>
<div><br clear="all">Cheers<br><br>Paul Cowan<br><br>Cutting-Edge Solutions (Scotland)<br><br><a href="http://thesoftwaresimpleton.com/" target="_blank">http://thesoftwaresimpleton.com/</a><br><br>
</div>