3

I have a process running Python code, and another running C++. Each needs to make RPC calls into the other within the same host. I'd like to have a single tool, implemented in both languages, to reduce compatibility issues, but there is no Python/C++ entry in https://en.wikipedia.org/wiki/JSON-RPC .

If I use one library (say simple-rpc) in Python and a different one (say libjson-rpc-cpp) in C++, could there be compatibility issues? JSON-RPC 2.0 is supposed to be a standard but there could be corner cases or grey areas.

Looking for pointers and real-world experience, including exception handling (do Python exceptions show up in C++ and vv).

I know about Protocol Buffers: they are cross-language but not exactly a RPC mechanism.

EDIT: Just found Apache Thrift, but it seems to have many dependences. Still interested in original question on using different libraries on Python/C++ side.

Thanks.

3
  • stackoverflow.com/questions/6915191/… Commented Oct 2, 2015 at 11:36
  • only thing missing in the above thread is probably CORBA Commented Oct 2, 2015 at 11:37
  • Thanks, Basav. CORBA seems too heavyweight. The thread you quoted refers to IPC, not RPC, but it is a good pointer. Commented Oct 2, 2015 at 12:00

0

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.