[IPython-dev] Using Google App Engine channels instead of zmq in new IPython
Mon Feb 13 16:32:12 CST 2012
At this point, ZeroMQ is not a minor implementation detail of IPython,
it is really our secret sauce. ZeroMQ has abstractions, such as
queues and messaging patterns, that go beyond simple point to point
messaging and we rely on those throughout the code base. I don't see
how ZeroMQ could be replaced without rewriting good parts of IPython.
I do think some of the patterns we use could be adapted for use in GAE
though - such as our message protocol.
On Mon, Feb 13, 2012 at 11:15 AM, MinRK <firstname.lastname@example.org> wrote:
> On Mon, Feb 13, 2012 at 10:44, Jason Grout <email@example.com>
>> Over the Sage camp, we're starting to experiment with using Google App
>> Engine to manage communication between browser frontends and worker
>> (kernel) backends. The idea is to use GAE to host the notebook, while
>> browsers and backend kernels communicate to send and retrieve work and
>> results through the Google App Engine "channel" architecture . The
>> result would be a massively more scalable notebook running in the cloud.
> Scalability / Cloud are great, and certainly an ultimate goal, but my
> perspective is that if replacing zmq is part of the GAE solution, then it is
> just not the place for IPython.
>> We'd (or at least I'd) also like to eventually switch to IPython 0.12,
>> and try to leverage the new IPython architecture and communication in
>> the Sage notebook. So my question is: how well is the zmq parts
>> encapsulated, and do you think it would be hard to write a google app
>> engine "channel"-based solution that plugs in the place of the zmq
>> communication (and websocket for the html notebook) communication?
> zmq is used principally in two places:
> * The Session object, which abstracts network communication. You would have
> to write a new version of this object
> * The event/polling loops everywhere (specifically Kernel, KernelManager,
> NotebookApp). If GoogleAppEngine channels can be made to work with the
> tornado IOLoop, then this shouldn't be too tricky. Otherwise, you would
> have to rewrite the eventloop of every application/thread we have.
>> I've CCd both the ipython list and the sage-notebook list---hopefully
>> the discussion can be carried on both lists. Also a disclaimer: I have
>> about zero experience with GAE; I'm just trying to throw the idea out
>> there and understand a little more about the possible work required.
>>  http://code.google.com/appengine/docs/python/channel/
>> IPython-dev mailing list
> IPython-dev mailing list
Brian E. Granger
Cal Poly State University, San Luis Obispo
firstname.lastname@example.org and email@example.com
More information about the IPython-dev