Forum: Ruby Implementing publish subscribe in ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7429154ba775167e7d45ea29ebc47ad7?d=identicon&s=25 bujji choudhary (Guest)
on 2006-04-28 07:43
(Received via mailing list)
Hi all...
   I want to implement publish subscribe pattern for small application
like "stock market" or " reservation of trains". Can any body tell me
where to start. I am new to ruby.

  If anybody is having any code for that please send me. I'll be
greatful.


                      Thanks in advance....


                                       LENIN.
F0d821a746f93cece1240d52d3e2617f?d=identicon&s=25 Pierre-Charles David (Guest)
on 2006-04-28 08:56
(Received via mailing list)
On 4/28/06, bujji choudhary <bujji2352@yahoo.com> wrote:
>    Hi all...
>    I want to implement publish subscribe pattern for small application like "stock 
market" or " reservation of trains". Can any body tell me where to start. I am new to 
ruby.
>
>   If anybody is having any code for that please send me. I'll be greatful.

If what you're looking for is a simple non-distributed observer
pattern, Ruby includes one in the standard library. Check [1] for the
documentation. The example usage on that page is actually a simple
stock market!

Otherwise, if you're looking for a distributed solution, check DRb [2]
(Distributed Ruby) and Rinda [3], Ruby's implementation of the
tuplespace paradigm. It's not classical publish/subscribe but can be
used to do the same kind of things.

[1]
http://www.ruby-doc.org/stdlib/libdoc/observer/rdo...
[2] http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html
[3] http://www.ruby-doc.org/stdlib/libdoc/rinda/rdoc/index.html
This topic is locked and can not be replied to.