RingyDingy-1.0.0

Eric Hodel | Sat, 09 Sep 2006 23:29:00 GMT

Posted in , ,

RingyDingy is a little boat that keeps your DRb service afloat!

RingyDingy automatically registers a service with a RingServer. If communication between the RingServer and the RingyDingy is lost, RingyDingy will re-register its service with the RingServer when it reappears.

Similarly, the RingServer will automatically drop registrations by a RingyDingy that it can't communicate with after a short timeout.

Installing RingyDingy

Just install the gem: gem install RingyDingy

Using RingyDingy

You'll need a Rinda::RingServer, you can download one here.

Once you've got that running you can have a service register itself:

require 'rubygems'
require 'ringy_dingy'
require 'my_drb_service'

my_drb_service = MyDRbService.new

RingyDingy.new(my_drb_service).run

DRb.thread.join
Full documentation is available from ri once you've installed the gem.

To learn more about Rinda::RingServer, you can read my handy tutorial How to use Ruby's Rinda::Ring. no comments

Comments RSS FEED

Comments are disabled