Am Wed, 10 Oct 2007 16:11:15 +0900 schrieb Daniel DeLorme <dan-ml / dan42.com>: > 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? > > Thanks, > Daniel > shared memory? I don't expect UNIXSocket to be unstable. I'm running over 2 years with using ruby's socket library without problems. Dont forget to remove the created socket if your process ends :)