RabbitMQ learning subscription mode (taking C# code as an example)
Subscription mode (Publish/Subscribe)
When a message is sent to many consumers at one time, the message sent by one producer will be obtained by multiple consumers, that is, the message will be broadcast to all consumers.
Application scenario: after updating the commodity inventory, you need to notify multiple caches and databases. The structu ...
Posted by cvjacques on Sun, 02 Jan 2022 07:13:09 +0100
RabbitMQ notes SpringBoot integrates RabbitMQ's simple container (consumer)
1, Introduction
message middleware has a series of functions, such as low coupling, reliable delivery, broadcasting, flow control, final consistency, etc. it has become one of the main means of asynchronous RPC, such as ActiveMQ, RabbitMQ, Kafka, RocketMQ, etc. The main functions of message oriented middleware are as follows: ...
Posted by GarroteYou on Fri, 31 Dec 2021 05:17:06 +0100
Use of C# RabbitMQ
The purpose of this paper is as follows.
install
Let's talk about RabbitMQ installation first. It is recommended to use Docker image installation. The advantage of Docker installation is that there are few installation steps, the installation method is the same, and it is not easy to make mistakes, regardless of Windows system or Linux. You can ...
Posted by Lagreca on Thu, 30 Dec 2021 23:10:10 +0100
Suggestions on the use of RabbitMQ
After more than 4 years of use experience, Found that there are many misunderstandings and wrong codes on the Internet. In order to clarify some wrong ideas and ways of use. I specially wrote this article to unify everyone's programming standards and naming standards, Facilitate system development and system integration.
Added some common q ...
Posted by Master Zen on Wed, 29 Dec 2021 12:11:57 +0100
Message model supported by RabbitMQ
catalogue
1.MQ
1.1 definitions
1.2 what are the advantages of MQ
1.3 different MQ characteristics
2 RabbitMQ
AMQP protocol
3 message model supported by rabbitmq
3.1 official website
3.2 introducing dependencies
3.3 the first model (direct connection)
1. Developing producers
2. Develop consumers
3.4 encapsulation of connection tools ...
Posted by nowaydown1 on Tue, 28 Dec 2021 11:13:16 +0100
How to ensure the reliability of message transmission in RabbitMQ?
How to ensure that messages are not lost
1. Message loss caused by network abnormality
Do a good job in fault tolerance (try - catch) of the method. Sending messages may fail due to network reasons. After the failure, it will be recorded in the database.Keep a log, and the status of each message sent should be recorded.-- Message record table ...
Posted by Nathaniel on Sat, 25 Dec 2021 19:45:53 +0100
Work queues
Work queue:
Work queue The main idea of (also known as Work Queues) is to avoid executing a resource intensive task immediately and having to wait for it to complete. Instead, we schedule the task to be executed later. We encapsulate the task as a message and send it to the queue. The work process running in the background will pop up the t ...
Posted by Wave on Wed, 22 Dec 2021 04:46:44 +0100
Quick start RabbitMQ
1.MQ introduction
1.1 what is MQ
MQ (message queue): translated into message queue. Through the typical producer and consumer model, producers continuously produce messages to the message queue, and consumers continuously obtain messages from the queue. Because the production and consumption of messages are asynchronous, and only care abo ...
Posted by mverrier on Tue, 21 Dec 2021 23:39:59 +0100
Spring cloud version h Stream message driven explanation
1, SpringCloud Stream
In the previous article, we explained the function of config + bus to automatically refresh all service configurations. This article continues to explain the message driven Stream
Last article address: https://blog.csdn.net/qq_43692950/article/details/122025347
Officially, Spring Cloud Stream is a framework for bui ...
Posted by adeenutza on Sun, 19 Dec 2021 21:00:06 +0100
Five stages of Java learning - rabbitmq springboot integration
New project
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</mod ...
Posted by dprichard on Sun, 19 Dec 2021 10:42:00 +0100