There are several programs written in different languages ​​(python, Java, plus).
It is required from one program (written in Java) to consistently transmit data, wait for their processing and receive a response. How to implement the interface of interlanguage interaction? Are there any ready-made solutions? What words google?

Closed due to the fact that the issue is too general for participants jfs , 0xdb , Kromster , Suvitruf , Saidolim Mar 31 '18 at 19:54 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    Too general question on which it is impossible to give an unequivocal question. From options:

    • REST API
    • Message Brokers (RabbitMQ, 0MQ)
    • unix piplines
    • RPC, incl. using ready-made implementations, for example Thrift
    • socket communication

      Hello! Do I understand correctly that you need to "tie in" the implemented programs? If so, then you do not care what language they are described. Think through a simple data format and exchange scheme. Example: The program in Java accepts two numbers as input parameters, adds them and saves their sum in a file. The algorithm for using this program from another would be: call the first program, transfer 2 numbers to the input. Expect a file in the specified location. When the file has appeared - read the result from it, perform some actions ...

      • ... and the second program will read the file so quickly that it will be empty, since the first program has not yet had time to enter a number into the newly created file. Do not do it this way. - andreymal
      • Yes thank you. Not enough sign of the completion of the first program - artem1y