Multi-casting Messages to Twitter, Jabber, IRC, etc. with .NET and Ruby
Customers use a wide variety of technologies for communication and expect the companies they deal with to do the same. This means the same message may need to be sent to a mailing list, a Twitter account, an IRC channel, and a Facebook page. To make this easier, developers can use the Broadcast library for Ruby or its .NET clone, nBroadcast.
Broadcast and nBroadcast use the same basic API design. First one or more Mediums are setup. A Medium is setup using global configs. Since they are defined as key-value pairs, they are easy to use with Rails initializers or XML configuration files. Once that is done messages are sent merely by listing the target mediums types and a string containing the message itself.
The two libraries share the same fundamental design flaw. Since mediums are defined using global configs only one version of each is allowed. If you want to send the same message to two different mailing lists or Twitter accounts you are simply out of luck. But as these are open source libraries modifications can be made to make them work better in these scenarios.
Broadcast is released under the MIT License. No license is available for nBroadcast.
Educational Content
Concurrency in Clojure
Stuart Halloway May 17, 2013
Confessions of an Agile Addict
Ole Friis Østergaard May 16, 2013
Web Development: You're Doing It Wrong
Stefan Tilkov May 16, 2013
Programming The Feynman Way
Ben Evans May 15, 2013





Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think