0

I have a series of independant bash shell running 1 python program. I need to pass some status information between them (high frequency and small size).

Is there an efficient to communicate between those PID process (using python) ? I see those ones :

flat file  (issue concurrency).
Key value table like MongoDB.

Just wondering, if there are some packages in python, simplifying this.

tensor
  • 3,088
  • 8
  • 37
  • 71

1 Answers1

0

Your best bet are Unix domain sockets and Named Pipes / FIFOs. For comparison you can see this answer. For simplicity you can use JSON as message format.