Try check out Cramp. <a href="http://m.onkey.org/2010/1/7/introducing-cramp" rel="nofollow">http://m.onkey.org/2010/1/7/introducing-cramp</a>.<p>It's built on top of EventMachine - Ruby equivalent of Twisted.