<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>消息队列 on Jachy · 开发实践与个人工具</title>
    <link>https://jinyu.cool/categories/%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97/</link>
    <description>Recent content in 消息队列 on Jachy · 开发实践与个人工具</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Mon, 20 Nov 2023 14:28:43 +0800</lastBuildDate>
    <atom:link href="https://jinyu.cool/categories/%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>RabbitMQ 概念与工作模式笔记</title>
      <link>https://jinyu.cool/posts/backend/rabbitmq/</link>
      <pubDate>Mon, 20 Nov 2023 14:28:43 +0800</pubDate>
      <guid>https://jinyu.cool/posts/backend/rabbitmq/</guid>
      <description>&lt;h2 id=&#34;基本概念&#34;&gt;基本概念&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Server（Broker）&lt;/strong&gt;：接收客户端连接、实现 AMQP 的实体服务。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Connection&lt;/strong&gt;：客户端与 Server 之间的网络连接。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Channel&lt;/strong&gt;：网络信道，消息读写的通道。每个 channel 代表一个会话任务。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Message&lt;/strong&gt;：客户端与服务端之间传输的数据，由 &lt;code&gt;Properties&lt;/code&gt; 和 &lt;code&gt;Body&lt;/code&gt; 组成。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Virtual Host&lt;/strong&gt;：逻辑隔离。多条产品线共用一个 RabbitMQ 时，可以用它做分离。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Exchange&lt;/strong&gt;：交换机。接收消息，并根据 routing key 把消息路由到队列。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Binding&lt;/strong&gt;：Exchange 与 Queue 之间的虚拟连接，一个 binding 可以包含多个 routing key。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Routing Key&lt;/strong&gt;：路由规则。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Queue&lt;/strong&gt;：也称 Message Queue，用于保存消息并转发给消费者。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;message-的-properties&#34;&gt;Message 的 Properties&lt;/h3&gt;
&lt;p&gt;常用属性是 delivery mode 和 headers（自定义属性）。其他属性包括：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
