<br><br><div class="gmail_quote">On Mon, Feb 13, 2012 at 15:08, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Mon, Feb 13, 2012 at 3:01 PM, Jason Grout<br>
<<a href="mailto:jason-sage@creativetrax.com">jason-sage@creativetrax.com</a>> wrote:<br>
><br>
> Those are some very nice diagrams!<br>
<br>
</div>Indeed, all the credit goes to Min.<br>
<div class="im"><br>
> Thanks for the feedback.  We already have a websocket<->zmq bridge, right?<br>
>  I think now that GAE channels could basically replace the websocket<br>
> portion.  I assume that would be much easier?</div></blockquote><div><br></div><div>Yes, that would be much simpler, and the websocket:zmq layer is *extremely* simple, as should a similar translation to any other messaging system.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">  So the basic architecture<br>
> would be:<br>
><br>
> browser <-GAE channel-> Sage server on GAE <-GAE channel-> (bridge <-ZMQ-><br>
> IPython kernel)<br>
><br>
> where the part in parentheses would be the worker running on a compute<br>
> server, and the shim is the bridge between GAE channels and zmq.  Does that<br>
> seem more reasonable?  What does the architecture of your websocket bridge<br>
> look like?<br>
<br>
</div>That's the part we use tornado for, so indeed if you wanted to go this<br>
route but run on GAE instead, you could replace our tornado-using code<br>
as indicated in your ascii-diagram above.  The code that does this is<br>
mostly in the various modules here:<br>
<br>
<a href="https://github.com/ipython/ipython/tree/master/IPython/frontend/html/notebook" target="_blank">https://github.com/ipython/ipython/tree/master/IPython/frontend/html/notebook</a><br>
<br>
That directory is the only part of IPython that uses tornado, which is<br>
effectively what you're talking about replacing.<br></blockquote><div><br></div><div>True, but the architecture differs in that what is currently the tornado-based NotebookApp covers everything from the browser to the zmq side of the gae:zmq bridge.  So there would have to be some work duplication/proxying for the KernelManagers, which talk zmq to the kernels, and would be separated from server code by an additional GAE layer in this pattern.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5"><br>
f<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>