# RingyDingy

**URL:** <https://www.ruby-forum.com/t/ringydingy/68174>\
**Category:** Ruby\
**Created:** [September 10, 2006, 1:25am UTC](https://www.ruby-forum.com/t/ringydingy/68174 "2006-09-10T01:25:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [September 10, 2006, 1:25am UTC](https://www.ruby-forum.com/t/ringydingy/68174/1 "2006-09-10T01:25:42Z")

</div>

= RingyDingy

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

Rubyforge Project:

[http://rubyforge.org/projects/seattlerb](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](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](http://segment7.net/projects/ruby/drb/rinda/ringserver.html)

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
