Show Menu
Cheatography

RabbitMQ Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

RabbitMQ

Overview

RabbitMQ is an AMQP (Advanced Messaging Queuing Protocol) message broker. It supports multiple messaging protocols, message queuing, delivery acknow­led­gement, flexible routing to queues and multiple exchange types
RabbitMQ can be deployed with Docker, Puppet, Chef and BOSH
RabbitMQ can be deployed as clusters for high availa­bility and can be federated across multiple availa­bility zones and regions

Protocol Support

AMQP 0-9-1
Core binary protocol with strong messaging semantic. Good library support across progra­mming languages and enviro­nments.
STOMP
Simplicity text-based protocol. *Requires plugin
MQTT
Lightw­eight binary pub/sub. *Requires plugin
AMQP 1.0
Lower semantic requir­ements, but more complex protocol than AMWP 0-9-1. *Requires plugin
HTTP & Websockets
/*Utilizes Web STOMP plugin, Web MQTT plugin or management plugin
 

AMQP 0-9-1 Model

cdc
dedede
dede

Key Terms

Publishers
Exchanges
fefe
Routes
Queues
fefe
Topics
fefe
Subscr­ibers
Consumer
Bindings

Useful links

Command Line Tools

rabbit­mqctl
Service management and operator tasks
rabbit­mq-­dia­gno­stics
Diagno­sti­cs/­Health check
rabbit­mq-­plugins
Plugin management
rabbit­mqadmin
Operator tasks over HTTP API

Useful commands

Descri­ption
Windows -
Linux
Show queues and message count
rabbit­mqc­tl.bat list_q­ueues
sudo rabbit­mqctl list_q­ueues