On Oct 10, 2007, at 24:11 , Daniel DeLorme wrote:
> What are the possibilities in ruby for passing information from one  
> process to another? Specifically, I'm thinking of messaging between  
> a parent process and its forked child.
>
> Right now I can think of some messaging primitives:
> - TCPServer/TCPSocket
> - UNIXServer/UNIXSocket (unstable?)
> - IO.pipe (doesn't need port#)
> - Process.kill (impossible to send data)
>
> And some messaging libraries:
> - DRb (standard)
> - eventmachine (efficient?)
>
> ...what else? And, if anyone has the experience, what are the  
> advantages/disadvantages of each in terms of speed, reliability,  
> system resources?

DRb will cause you to do the least amount of work.  You only need to  
speak ruby, you don't need to do any serializing of data because it  
all gets handled for you.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars