Idiomatic, fast and well-maintained JRuby client for RabbitMQ
Latest commit f861970 Jan 20, 2017 @michaelklishin michaelklishin committed on GitHub Merge pull request #113 from olleolleolle/patch-3
Travis: use jruby-
Failed to load latest commit information.
examples Don't use the shameful old name in examples Aug 14, 2015
lib Back to development version Jan 14, 2017
spec Use publisher confirms in this test Jan 14, 2017
.gitignore Add spec/examples.txt to gitignore Sep 22, 2016
.rspec Automatically require spec_helper in .rspec file Sep 22, 2016
.travis.yml Travis: use jruby- Jan 20, 2017
.yardopts Continued attempt to make YARD work for us Jun 2, 2013 Update change log Jan 14, 2017
Gemfile Relax rspec version specification and upgrade rspec to version 3.5 Sep 22, 2016
LICENSE Copy years Sep 11, 2013 README: Use SVG badge Jan 20, 2017
march_hare.gemspec Rename to MarchHare Sep 11, 2013
repl Add a REPL shortcut Nov 15, 2013

March Hare, a JRuby RabbitMQ Client

March Hare is an idiomatic, fast and well-maintained (J)Ruby DSL on top of the RabbitMQ Java client. It strives to combine strong parts of the Java client with over 4 years of experience using and developing Ruby amqp gem and Bunny.

Why March Hare

  • Concurrency support on the JVM is excellent, with many tools & approaches available. Lets make use of it.
  • RabbitMQ Java client is rock solid and supports every RabbitMQ feature. Very nice.
  • It is screaming fast thanks to all the heavy duty being done in the pretty efficient & lightweight Java code.
  • It uses synchronous APIs where it makes sense and asynchronous APIs where it makes sense. Some other Ruby RabbitMQ clients only use one or the other.
  • amqp gem has certain amount of baggage it cannot drop because of backwards compatibility concerns. March Hare is a clean room design, much more open to radical new ideas.

What March Hare is not

March Hare is not

  • A replacement for the RabbitMQ Java client
  • An attempt to re-create 100% of the amqp gem API on top of the Java client
  • A "work queue" like Resque
  • A cure for cancer

Project Maturity

March Hare is not a young project. Extracted from a platform that transports more than a terabyte of data over RabbitMQ every day, it has been around as an open source project since mid-2011 and has reached 2.0 in late 2013.

It is based on the RabbitMQ Java client, which is officially supported by the RabbitMQ team at Pivotal.

Installation, Dependency

With Rubygems

gem install march_hare

With Bundler

gem "march_hare", "~> 2.22.0"



MarchHare documentation guides are mostly complete.


Several code examples are available. Our test suite also has many code examples that demonstrate various parts of the API.


API reference is available.

Supported Ruby Versions

March Hare supports JRuby 9.0.

Supported JDK Versions

The project is tested against OpenJDK 8, Oracle JDK 8 and is known to work on OpenJDK 7 and Oracle JDK 7.

Change Log


Continuous Integration

Continuous Integration status

CI is hosted by


You'll need a running RabbitMQ instance with all defaults and management plugin enabled on your local machine to run the specs.

To boot one via docker you can use:

$ docker run -p 5672:5672 -p 15672:15672 rabbitmq:3-management

And then you can run the specs using rspec:

$ bundle exec rspec


MIT, see LICENSE in the repository root


Theo Hultberg, Michael Klishin, 2011-2016.