Applications that need to use RabbitMQ need to establish a permanent connection to it. When this connection is established, logical channels can be created and message-oriented interactions, such as publishing and getting messages, can be performed. After learning these fundamentals, you'll learn how exchange-routing strategies determine how messages are delivered to queues. In particular, you will learn about direct exchange, which delivers messages to a single queue, and topic exchange, which delivers messages to multiple queues based on pattern-matching routing keys.
In this chapter, we will discuss the following topics:
Establishing a solid connection to RabbitMQ
Working with channels
Publishing messages to RabbitMQ
Getting messages from RabbitMQ
Direct and topic exchanges