Hopefully on Wednesday Blogmonitor , a new project of Interdings will be open for the public. In the last days and hours I was working on the API-components. An XML/RPC-interface, an REST-service and as a nice goodie a multithreaded TCP-server where you can watch all the incoming pings when they occur. The concept is the following: when an incoming ping occurs, the encapsulated class Blogmonitor::Pingservice::Ping sends a notification to the TCP-component, which waits for incoming connections on a custom port and serves the snippet to all of the connected clients. This is invented as really simple interface and has nothing to do with more standartized technologies like »Publish & Subscribe«, also the logic would be similiar.
What does Ruby already provide?
Ruby ships an example of a multihreaded server implementation which is called GServer . It provides the possibility to create a child-class of it, overload the serve() -method and be happy. That’s really ...
Content suppressed by ://URLFAN, for full article visit source