RabbitMQ messages

RabbitMQ is a message broker. The principal idea is pretty simple: it accepts and forwards messages. You can think about it as a post office: when you send mail to the post box you’re pretty sure that Mr. Postman will eventually deliver the mail to your recipient. Using this metaphor RabbitMQ is a post box, a post office and a postman.

The major difference between RabbitMQ and the post office is the fact that it doesn’t deal with paper, instead it accepts, stores and forwards binary blobs of data ‒ messages.

RabbitMQ, and messaging in general, uses some jargo

RabbitMQ speaks a protocol called AMQP. To use Rabbit you’ll need a library that understands the same protocol as Rabbit. There is a choice of libraries for almost every programming language. For python it’s no different and there are a bunch of libraries to choose from:

py-amqplib
txAMQP
pika

Leave a Reply

Your email address will not be published. Required fields are marked *