[ANN] RingyDingy

E

Eric Hodel

= RingyDingy

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

Rubyforge Project:

http://rubyforge.org/projects/seattlerb

Documentation:

ri RingyDingy

== About

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:

$ sudo gem install RingyDingy

== Using RingyDingy

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

http://segment7.net/projects/ruby/drb/rinda/ringserver.rb

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

To learn more about Rinda::RingServer, you can read my handy tutorial:

http://segment7.net/projects/ruby/drb/rinda/ringserver.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top