• Stars
    star
    273
  • Rank 150,780 (Top 3 %)
  • Language
    Ruby
  • Created about 14 years ago
  • Updated almost 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn ZeroMQ using Ruby!

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.9.0 . All examples have been updated to use the newer API exposed in ffi-rzmq 0.9.0 and later. If your libzmq version >= 3.2.1, Make sure you have the ffi-rzmq gem >= 0.9.7(you can clone git://github.com/chuckremes/ffi-rzmq.git and build from source), otherwise you will get "Function 'zmq_ctx_set_monitor' not found" error message.

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.

More Repositories

1

engulf

Distributed HTTP load tester, written in Clojure and Javascript.
Clojure
266
star
2

dripdrop

Experimental Swiss Army Knife of Network Concurrency, ZeroMQ, EventMachine, WebSockets, HTTP, and More
Ruby
144
star
3

em-zeromq

ZeroMQ on EventMachine
Ruby
135
star
4

elastic-hammer

Rich browser-based frontend for elasticsearch
JavaScript
103
star
5

noir-async

Seamless, concise, async webservices for clojure.
Clojure
98
star
6

ee-datasets

Datasets for exploringelasticsearch.com
Shell
54
star
7

wikiparse

Parse wikipedia dumps and index (some) page data to elasticsearch
Clojure
49
star
8

node-streamlogger

Node Logging class supporting multiple log levels and log rotation
JavaScript
29
star
9

clj-automata

Simple elementary automata sim. `lein run 110` to run rule 110 for example
Clojure
28
star
10

d3-backbone-presentation

Clojure
21
star
11

elastic-loader

A tool for loading data into elastic-search in bulk
Clojure
16
star
12

rocksandsand

A Rock Garden
JavaScript
15
star
13

little_hat

A Simple Web Gallery
Ruby
11
star
14

noir-async-chat

Example project for noir-async
JavaScript
9
star
15

email_address_validator

RFC Compliant Email Address Parsing
Ruby
8
star
16

interrotron

An (incomplete) lisp for secure rule evaluation in Ruby
Ruby
5
star
17

socket-motor

A scalable async bridge between web-sockets and HTTP
Ruby
3
star
18

emacsd

Emacs Lisp
2
star
19

rbx-websockets

Threads + Websockets for RBX
Ruby
2
star
20

crawl-bench

A Benchmarking Crawler
Java
2
star
21

async-pres

Ruby
2
star
22

learn-lucene

Java
2
star
23

vim-settings

My ~/.vim folder
Vim Script
1
star
24

avc-blog

My Blog
HTML
1
star
25

lightboard

Experiments with paper.js
JavaScript
1
star
26

drumcirclr

JavaScript
1
star
27

mysql-xml

A simple library for iterating through XML data dumps in a stream based manner
Ruby
1
star
28

LA-Hacker-News

Ruby
1
star
29

stockbeat

Toy beat to track stocks via the IEX API
Go
1
star