Note that there are some explanatory texts on larger screens.

plurals
  1. POfast-ish python/jython IPC?
    text
    copied!<p>All I want to do is make some RPC calls over sockets. I have a server that does backendish stuff running jython 2.5. I need to make some calls from a frontend server running Django on CPython. I've been beating my head against a wall getting any form of IPC going.</p> <p>The list of things I've tried:</p> <ul> <li><a href="http://incubator.apache.org/thrift/" rel="nofollow noreferrer">Apache Thrift</a> doesn't have any actual releases, just snapshots. I'd like to use something stable.</li> <li><a href="http://json-rpc.org/" rel="nofollow noreferrer">JSON-RPC</a> is interesting, and it should be able to run over sockets, but in practice most of the <a href="http://json-rpc.org/wiki/implementations" rel="nofollow noreferrer">implementations</a> only seem to work over HTTP. HTTP overhead is exactly what I'm trying to avoid.</li> <li><a href="http://code.google.com/p/protobuf/" rel="nofollow noreferrer">Protocol Buffers</a> is really only a serialization protocol. From what I gather protobuf provides interface generation for RPC, but it's only the interface. Actually writing all the connection code is up to the user. If I'm going to be stuck using sockets, I'll just use JSON for serialization. It's simpler and <a href="http://www.eishay.com/2009/03/thrift-vs-protocol-buffers-in-python.html" rel="nofollow noreferrer">faster</a>.</li> <li><a href="http://pyro.sourceforge.net/" rel="nofollow noreferrer">Pyro</a> doesn't work properly with Jython as a server. Some sort of socket timeout issue. I've sent a message to the mailing list.</li> <li><a href="http://code.google.com/p/pysage/" rel="nofollow noreferrer">pysage</a> Yay for message passing! Only it requires python 2.6 or the processing module (which has compiled extensions). Jython is version 2.5 and doesn't allow compiled extensions.</li> <li><a href="http://candygram.sourceforge.net/" rel="nofollow noreferrer">Candygram</a> is an interesting alternative to pysage, but as far as I can tell it's unmaintained. I haven't even tried it out with Jython. Any experiences with it?</li> <li><a href="http://twistedmatrix.com/projects/core/documentation/howto/pb-intro.html" rel="nofollow noreferrer">Twisted Perspective Broker</a> Twisted doesn't work on Jython.</li> </ul> <p>I know that it'd be a snap doing this with XML-RPC, which makes me even more cranky. I want to avoid the overhead of HTTP, but at the same time I really don't want to get down and dirty with sockets to implement my own protocol. I'll do it wrong if I do.</p> <p>Any ideas? I'm probably going to cry for about 20 minutes and then just use XML-RPC.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload