Bunny is a feature-complete Ruby client for RabbitMQ that emphasizes ease of use and supports current AMQP 0-9-1 features.
Overview
Bunny is a mature, easy-to-use Ruby library for connecting applications to RabbitMQ, with support for recent RabbitMQ features and no heavyweight dependencies.
Ruby programs use Bunny to publish and consume messages, including synchronous pull-style consumption in simple examples. The client lets Ruby services exchange work with other applications written in Ruby or other languages, from basic queues to multi-stage workflows.
Common use patterns include event aggregation, routing web traffic to other services, game event fan-out, market data distribution, search index updates, push-style APIs, CI build distribution, and relaying live data streams to web front ends. Guides cover queues, consumers, exchanges, publishers, connections, errors, TLS, bindings, durability, and RabbitMQ extensions.
Modern Bunny targets currently community-supported RabbitMQ releases and CRuby 3.2 through 4.0. TLS use expects a Ruby build with TLS 1.3-capable OpenSSL. JRuby users are directed to March Hare instead of Bunny.
Key features
- AMQP 0-9-1 RabbitMQ client
- Publish and consume messaging APIs
- TLS and SSL connection support
- Exchanges, queues, and bindings
- Error handling and recovery guides
- RabbitMQ extension support
- Synchronous pull-style consumption
- No heavyweight dependencies
Use cases
- Ruby apps talking to RabbitMQ
- Work queues between services
- Event and metrics aggregation
- Multi-app data processing pipelines