Best method for inter process communications

marduk marduk at nbk.hopto.org
Mon Jul 16 19:57:30 CEST 2007


On Mon, 2007-07-16 at 17:22 +0000, JamesHoward wrote:
> I am looking for a way of performing inter process communication over
> XML between a python program and something else creating XML data.
> 
> What is the best way of performing this communication?  I could bind a
> socket to localhost and perform the data transfer that way, but that
> seems inefficient due to the addition of TCP/IP or UDP/IP overhead.
> Is there a way to stream data via a custom datastream (I.E. not STDIO,
> STDERR, etc)?

In *nix, you could also use a named pipe for cheap RPC (os.mkfifo()).

-a




More information about the Python-list mailing list