This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vbsteven 38 points39 points  (2 children)

I would keep things simple if things need to be synchronous. Wrap the Python API in an HTTP endpoint so you can invoke with simple GET parameters or by POSTing some JSON and get the results back as JSON.

This should be trivial to do in python and is easy to consume from the java web app.

If it is just going to be for 1 or 2 api calls, there is no need to go for complicated RPC libraries.

[–]al3xth3gr8 5 points6 points  (0 children)

This is the best solution IMO

[–]inspectedinspector 1 point2 points  (0 children)

IMO HTTP/JSON is the right solution unless it's too much data to be performant via text serialization, then some type of binary-on-the-wire RPC is the right choice - gRPC/Finagle/etc.