Approaches of interprocess communication

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Feb 16 13:45:26 EST 2007


exhuma.twn wrote:

> * Sockets
>    Advantage: Supported per se in nearly every programming
>    language without even the need to install additional packages
>    Disadvantage: Lot's of code to write,

Who's Lot? :)

No, seriously. Why would you think that it's much to write? It can,
especially using Python, be as easy as using a file.

>    and it's kind of silly to communicate via TCP/IP if the
>    processes run on the same machine. 

Why? 

- Do you worry about CPU cycles, memory, ...?
- Who forces you to use TCP?

> Supposing both processes are written in Python, is there any other
> way to achieve this?

It depends on what those processes need to share. What you need can
range from a simple unix socket connection to a full-fledged SQL
database server.

Regards,


Björn

-- 
BOFH excuse #301:

appears to be a Slow/Narrow SCSI-0 Interface problem




More information about the Python-list mailing list