官术网_书友最值得收藏!

  • RabbitMQ Essentials
  • Lovisa Johansson David Dossot
  • 235字
  • 2021-06-11 18:49:51

Creating a Taxi Application

In everyday conversation, people greet each other, exchange banter, and then eventually end the conversation and continue on their way. Low-level TCP connections function in the same way over lightweight channels in RabbitMQ. Applications that are going to exchange messages over RabbitMQ need to establish a permanent connection to the message broker. When this connection is established, a channel needs to be created so that message-oriented interactions, such as publishing and consuming messages, can be performed.

After demonstrating these fundamentals, this chapter will cover how a broker uses exchanges to determine where each message should be delivered. An exchange is like a mailman: it delivers messages to their proper queues (mailboxes) for consumers to find at a later time.

The basic RabbitMQ concepts are shown in the following diagram:

Fig 2.1: Basic R abbitMQ concepts

By the end of this chapter, you will have a solid understanding of the application architecture behind the Complete Car (CC) platform and how they sent the first message through RabbitMQ. This requires an introduction to two different types of exchanges: direct exchange, which delivers messages to a single queue, and topic exchange, which delivers messages to multiple queues based on pattern-matching routing keys.

To get the best start possible, following topics are covered:

  • The application architecture behind CC
  • Establishing a connection to RabbitMQ
  • Sending the first messages
  • Adding topic messages

Let's get started!

主站蜘蛛池模板: 仁怀市| 阳江市| 剑阁县| 茌平县| 辽源市| 滁州市| 合山市| 双桥区| 绵阳市| 开江县| 上林县| 吕梁市| 界首市| 卓资县| 巩留县| 江门市| 平顺县| 合江县| 岱山县| 棋牌| 那坡县| 呼玛县| 合山市| 南投市| 宝坻区| 南京市| 峨眉山市| 密云县| 延川县| 曲沃县| 龙海市| 海阳市| 郎溪县| 辽宁省| 新巴尔虎右旗| 镇原县| 垫江县| 全州县| 株洲市| 嘉义县| 五原县|