I have a Python process on a single box which creates a flock of mini servers, small Python processes which provide some specialized computation. Each of those creates and listens on a Unix domain socket using multiprocessing.connection.Listener ("file_path")
, each with a different path, of course.
Is it possible to access a socket on a remote machine, with something like a path of unix://remote/file_path
, or file://remote/file_path
?
Using port numbers is not practical, since the set of mini servers is dynamic.
Unix domain sockets are meant for inter-process communication within the same host machine. Data sent through these sockets are handled entirely inside the kernel. For communication between processes in different machines, you should use network sockets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With