Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Learn ZeroMQ using Ruby!
branch: master

This branch is 5 commits behind andrewvc:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
001_Socket_Types
002_Example_Programs
003_ZMQMachine
.gitignore
README.md

README.md

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.

About ZeroMQ

ZeroMQ is one of the simplest and most exciting ways to build high performance, concurrent local and network applications. ZeroMQ uses a sockets style API to make powerful message-based programs fun to build.

Be sure to follow the examples in order, as concepts shown in earlier chapters won't be described later on.

Getting Started

  1. Get a functioning ruby, either jruby (recommended) or 1.9.2. I recommend using rvm to manage multiple rubies
  2. 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.
  3. Download and install ZeroMQ from the ZeroMQ download page. ./configure && make && make install
  4. gem install ffi ffi-rzmq zmqmachine. Make sure you have the ffi-rzmq gem >= 0.5.1 .

Now you're set! Follow the numbered examples in order, where there are no numbers, there is no order.

Thanks Chuck!

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.

Something went wrong with that request. Please try again.