Approaches of interprocess communication



Hi all,

Supposing you have two separate processes running on the same box,
what approach would you suggest to communicate between those two
processes.

Let me list the ones I know of:

* 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, and it's kind of silly to
communicate via TCP/IP if the processes run on the same machine.

* Webservices
Advantage: Relatively easy to use, can work across different
languages
Disadvantage: Even more overhead on the TCP/IP side that simple
sockets, as really bulky SOAP messages need to be passed around.

* CORBA -- similar to webservices but more complicated to code.

* Shared memory
I don't know much about this subject.

Supposing both processes are written in Python, is there any other way
to achieve this? To me, shared memory sound the most suited approach.
But as said, I am still fuzzy in this area. Where can I find more
information on this subject?

.



Relevant Pages

  • Re: Approaches of interprocess communication
    ... communicate via TCP/IP if the processes run on the same machine. ... sockets, as really bulky SOAP messages need to be passed around. ... CORBA -- similar to webservices but more complicated to code. ... shared memory sound the most suited approach. ...
    (comp.lang.python)
  • Re: openMosix Question
    ... Openmosix even has no programming interface. ... Processes with single threads. ... Processes that work with shared memory or use multiple threads can't ... The processes would have to communicate over the network. ...
    (comp.os.linux.development.apps)
  • Re: Needing info on passing data between applications. Win[C#]
    ... its been a long time when i used shared memory. ... this is also a very fas way to communicate. ... I am not a friend ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Asking for recommendation on network application
    ... there is something whic is very productive, and it's called Remoting if they ... are only .NET application or WebServices if they are heterogeneous.. ... > communicate with many other machines over a period of time at ... but I'm wondering if there is any library or best practices or ...
    (microsoft.public.dotnet.framework)
  • Re: shared memory: open + unlink + sendfd + mmap
    ... > I have two processes that need to communicate through shared memory. ... > descriptor to the related process, who then uses the file descriptor ... > I've read about kernel hacks that allow 'sync' to skip files with no ...
    (comp.unix.programmer)