What is the best way to connect two daemons in Python?
I have a daemon A and B. I would like to receive the data generated by B in module A (possibly bi-directional). Both daemons support plugins, so I would like to close the connection in the plugins. What is the best and cross-platform way to do this?
I know several mechanisms from low-level solutions - shared memory (C / C ++), linux pipe, sockets (TCP / UDP), etc. and several high-level queues (JMS, Rabbit), RPC.
Both daemons should work on the same host, but obviously the best approach is to ignore the type of connection.
What are typical solutions / libraries in python? I am looking for an elegant and easy solution. I do not need an external server, only two processes talk to each other.
What should i use in python for this?
Simon source
share