1

I notice this thread: Fastish Python/Jython IPC, and I have a similar problem, but in different language.

I have a Java front-end and a C++ back-end, which I am thinking about rewrite it in Python in some near future. What will be the best IPC? I prefer socket to HTTP, as I am trying to avoid the HTTP overhead. And XML-RPC is an example one to avoid!

Are there any library to deal with cross platform RPC (JSON/XML etc.)?

Newbie in this field, thanks ahead!

2
  • to answer the question "Are there any library to deal with cross platform RPC (JSON/XML etc.)?" yes XML-RPC is a good choice. SOAP should be avoided but XML-RPC is pretty lightweight. Commented Mar 3, 2010 at 17:52
  • Why do you limit solutions by not including XML-RPC? Commented Mar 3, 2010 at 19:14

1 Answer 1

2

For the C++ backend you can use xmlrpc++ (LGPL'ed) - I'm planning to use it myself. It has very clean code so you can modify it easily if you need to.

As for the frontends in Java/Python, you could make use of Apache XML-RPC (don't know anything about it) or Python's xmlrpclib (very easy to use).

XML-RPC should be cross-platform. I've tried xmlrpc++ as server and xmlrpclib as client and it seems to work correctly, even when using faults, i.e. passing errors to the client.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.