So I am building a web app, I am using golang as the server language but there are certain logic that is run best on python( stuff related to pandas and all). I have an endpoint that lets you upload a file and I want to parse that with pandas. Can you suggest ways in which I can accomplish this?
There are couple of approaches I know;
communication via typical REST. Straightforward. Better for non-real-time/non-frequent calls.
Remote Procedure Calls. Pretty solid approach but requires extra investment of effort for managing Schema Definitions. There are already very popular libraries like Google's gRPC, Apache Thrift etc. Sometimes, this approach may be an overkill if used for tiny usecases. Less overhead as it uses HTTP/2.
Cheers!
Aravind
Software Engineer At Hasura, Hashnode Alumnus
If I were you I would have gone with grpc.io it's binary encoded and in my opinion much cleaner and faster than REST.