The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
RingyDingy-1.0.0

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Hodel

Posts: 660
Nickname: drbrain
Registered: Mar, 2006

Eric Hodel is a long-time Rubyist and co-founder of Seattle.rb.
RingyDingy-1.0.0 Posted: Sep 9, 2006 5:37 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eric Hodel.
Original Post: RingyDingy-1.0.0
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Hodel
Latest Posts From Segment7

Advertisement

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.

Read: RingyDingy-1.0.0

Topic: Italian Ruby book and cool suggested reading Previous Topic   Next Topic Topic: Alternative Story Card Format

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use