Search code examples
pythonlinuxhttpsystem

A way to Python program unilaterally transmit a message to another program written in another language


I'm trying to write a Python program that will unilaterally transmit a message to another program that can be written in any programming language. These messages can be transmitted several times per second. The sender is constantly sending messages and a receiver is constantly waiting for a message. There may be several programs to which messages are transmitted and they will be written by other people. All this will work within a single Linux environment.

That is, what method of transmitting messages between programs is suitable if a Python program transmits messages, and a recipient can be programmed in Python, Java, maybe even in other programming language?

I tried using the HTTP API, that is, the sending program calls the HTTP API of the receiving program. But it looks wrong, because both programs work on the same computer, there is no point in using a web server...


Solution

  • I think in your case you can try a message-broker software like ZeroMQ (libraries are available for Python, Java, C, C++, C#, Ruby, Dart, Go, NodeJS, Perl, Rust, F#, Haskell, Erlang).