
RabbitMQ学习笔记
文章平均质量分 82
RabbitMQ学习笔记
春盏77
这个作者很懒,什么都没留下…
展开
-
RabbitMQ学习笔记[7]-SpringBoot整合RabbitMQ
一、环境搭建1. 引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency>2. 配置环境spring: application: n原创 2021-05-24 11:01:51 · 178 阅读 · 1 评论 -
RabbitMQ学习笔记[6]-RabbitMQ消息模型-Routing订阅模型Direct与Topic
一、Routing之订阅模型-DirectWe were using afanoutexchange, which doesn't give us much flexibility - it's only capable of mindless broadcasting.We will use adirectexchange instead. The routing algorithm behind adirectexchange is simple - a message goes ...原创 2021-05-21 16:03:52 · 199 阅读 · 0 评论 -
RabbitMQ学习笔记[5]-RabbitMQ消息模型-Fanout广播模型
The core idea in the messaging model in RabbitMQ is that the producer never sends any messages directly to a queue. Actually, quite often the producer doesn't even know if a message will be delivered to any queue at all.Instead, the producer can only se.原创 2021-05-19 11:02:58 · 164 阅读 · 0 评论 -
RabbitMQ学习笔记[4]-RabbitMQ消息模型-消息持久性
前一篇【消息自动确认机制】学会了如何确保即使消费者死亡,任务也不会丢失。但是,如果RabbitMQ服务器停止,我们的任务仍然会丢失。When RabbitMQ quits or crashes it will forget the queues and messages unless you tell it not to. Two things are required to make sure that messages aren't lost: we need to mark both the q原创 2021-05-17 16:06:57 · 163 阅读 · 0 评论 -
RabbitMQ学习笔记[3]-RabbitMQ消息模型-work消息模型与消息自动确认机制
The main idea behind Work Queues (aka:Task Queues) is to avoid doing a resource-intensive task immediately and having to wait for it to complete. Instead we schedule the task to be done later. We encapsulate ataskas a message and send it to a queue. A ...原创 2021-05-17 12:26:48 · 258 阅读 · 2 评论 -
RabbitMQ学习笔记[2]-RabbitMQ消息模型-基本消息模型
RabbitMQ is a message broker: it accepts and forwards messages. You can think about it as a post office: when you put the mail that you want posting in a post box, you can be sure that Mr. or Ms. Mailperson will eventually deliver the mail to your recipie.原创 2021-05-13 17:04:50 · 192 阅读 · 3 评论 -
RabbitMQ学习笔记[1]-初识与安装RabbitMQ
一、MQ1. MQ定义MQ(Message Queue):翻译为消息队列,典型的生产者和消费者模型,生产者不断向消息队列中生产消息,消费者不断从队列中获取消息。因为消息的生产和消费都是异步的,而且只关心消息的发送和接收,没有业务逻辑的侵入,轻松实现系统间的解耦。别名为消息中间件,统过利用高校可靠的消息机制进行平台无关的数据交流,并基于数据通信来进行分布式系统的集成。2. MQ都有哪些主流的消息中间件,如传统的ActiveMQ、RabbitMQ,炙手可热的Kafka,阿里巴巴的Rocket原创 2021-05-13 16:39:24 · 159 阅读 · 1 评论