Francis Cianfrocca
2006-May-23 05:33 UTC
[Eventmachine-talk] Event-handlers across the network
All, now that the basic API seems to be coming together in the pure-Ruby eventmachine (or just Tha Machine! if you prefer), I started thinking about a fairly simple extension that would allow programs to handle events that were generated in other processes, or even on other machines. We now have Machine::Eventable#add_event_handler, which allows any object to register an interest in any event. We should be able to implement the handler so it forwards the received message to another node over the network. Callbacks invoked on the other side of the link would of course be forwarded back to the original process. Applications for this would include P2P applications and highly-scalable web servers that could easily distribute processing across several machines. To get more scalability, just add more machines. (Hmmm. Any ideas what it would take to make an eventmachine plugin for Rails?) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20060523/24bf9a7c/attachment.htm