From: X-Man Date: 2006-01-25T00:35:34+09:00 Subject: Re: event-driven networking Couldn't you use DRuby (require 'drb')? That's what I do in my Rails program. In the 2nd (distributed) server, I spawn a thread immediately upon request to the the work, and then return right away to the web process, which returns immediately to the browser. I don't have callbacks, but I imagine it would be dead-easy to have the 2nd server take a request ID from the 1st, then just call back using a DRuby call just like the 1st, pushing back the original request ID. This is the "asynchronous completion token pattern" as described by Schmidt. Here's the (very verbose) write-up ... http://www.cs.wustl.edu/~schmidt/PDF/ACT.pdf