Learn ZeroMQ by example!
A Work in Progress
If you'd like to help write examples, or if you've found an error, please write me, or fork and patch this repo. I'm still new to ZeroMQ myself, so some stuff may not be so perfect. If there are any errors, please send in a patch!
ZeroMQ is one of the most exciting technologies emerging today. Follow along with these tutorials explaining the usage of the ffi-rzmq gem.
Be sure to follow them in order, as concepts shown in earlier chapters won't be described later on.
- Get a functioning ruby, either jruby (recommended) or 1.9.2. I recommend using rvm to manage multiple rubies
- If you're using jruby the ffi gem it comes with will work fine. If using 1.9.2 you MUST install the special ffi gem included here, or build it from HEAD yourself.
- Download and install ZeroMQ from the ZeroMQ download page.
./configure && make && make install
gem install ffi-rzmq zmqmachine. Make sure you have the ffi-rzmq gem >= 0.5.1 .
now You're set! Follow the numbered examples in order.
Many thanks to Chuck Remes, author of both ffi-rzmq and zmqmachine for providing the ruby community with these gems, and helping answer my questions. None of this, would have been possible without his efforts.