Working with RabbitMQ
In the last section of this chapter, we are going to learn how to work with RabbitMQ. RabbitMQ is an open-source message broker that is particularly handy when you want to exchange information asynchronously and need a place where messages can be stored safely until they are read. RabbitMQ enables you to exchange information, which is the main reason that you do not need to use it directly unless you want to perform administrative tasks.
RabbitMQ uses the AMQP protocol. AMQP, which stands for Advanced Message Queuing Protocol, is an open protocol for message-oriented middleware. The characteristic features of AMQP are message orientation, queuing, routing, reliability, and security. AMQP works with binary data and transmits data in frames. There exist nine types of frames (open connection, close connection, transfer data, etc.) depending on the task that you want to perform.
If you must choose between RabbitMQ and Kafka, which both do a similar...