Barnacle is a gossip library for Ruby.
Peer -> Pier -> Barnacle. get it?
Barnacle handles discovery and message passing.
Take a look at examples/chat.rb, and start it up on two machines. On the second machine you start up, use the IP of the first one as the first argument. Now fire it up on any other machines, point it anywhere in the network, and watch the magic happen!
Discover peers, join the graph.
Replace slow peer links with faster links.
Configurable maximum number of links.
Pass messages to other peers.
Take care of any loops.
Specify a subset of nodes, or send to everybody.
- Actually finish it, and bring in the tests - Better logging - Race condition around two nodes connecting to each other - Modularize messaging protocol - Rewrite traversal so it's more efficient - Have different traversal strategies - GC the message sent list with timestamps - Disconnections - Customizable service name for dnssd