6-RabbitMQ practice-1-RabbitMQ introduction and environment construction

6-RabbitMQ practice-1-RabbitMQ introduction and environment construction What is a message queue? Message queue is an asynchronous communication mode between programs. The sender and receiver of messages do not need to interact with message queue at the same time. The message is kept in the quUTF-8...

Posted by Goins on Wed, 22 Sep 2021 04:47:02 +0530

RabbitMQ practice - asynchronous processing

A typical usage scenario for rabbitmq is asynchronous processing Scenario Description: after the user registers, send registration email and registration SMS to the user. When we develop the above scenarios, we usually use two ways to implement them. Serial mode Before there was no mq middlewarUTF-8...

Posted by techevan on Thu, 23 Sep 2021 10:34:33 +0530

Actual Title: Hand-held message for your business!| Spring Series 49

1. Two purposes of this article 1. Discuss five ways to deliver messages 2. Take you to write code to deliver transactional messages 2. Discuss five ways to deliver messages 2.1. Business Scenarios There is a scenario in e-commerce where after placing an order for a commodity, users need to be UTF-8...

Posted by satya61229 on Thu, 23 Sep 2021 22:08:24 +0530

Bus for spring cloud source code analysis

preface The main functions of Spring Cloud Bus: event subscription and publishing, and the specific implementation of event listening; Spring Cloud Bus is based on spring cloud stream, which shields the differences of underlying message middleware and encapsulates it into various binders. 1, BUTF-8...

Posted by jpotte00 on Sun, 26 Sep 2021 16:16:29 +0530

rabbitmq switch and ack mechanism

1, RabbitMQ switch 1. Direct case DirectExchange routing policy is to bind the message queue to DirectExchange. When a message arrives at DirectExchange, it will be forwarded to the corresponding message If the routing key is on the same Queue, for example, if the message Queue is named "Hello UTF-8...

Posted by Osorene on Tue, 28 Sep 2021 07:51:48 +0530

java Concurrent blocking queues LinkedBlockingQueue and ArrayBlockingQueue

1, ArrayBlockingQueue ArrayBlockingQueue is a bounded blocking queue implemented by array. The elements are sorted according to the principle of first in first out. put method and take method are blocking methods for adding and deleting. Next, we implement a case of producers and consumers throUTF-8...

Posted by mike_y on Sat, 02 Oct 2021 01:57:47 +0530

rocketmq learning notes

rocketmq learning notes 1. Architecture of rocketmq 1.1. Broker Can be understood as RocketMQ itselfbroker is primarily used by producer s and consumer s to receive and send messagesbroker regularly submits its its own information to nameserverIs a message store, forward server for message middUTF-8...

Posted by vapour_ on Mon, 04 Oct 2021 22:48:44 +0530

rabbitmq: basic concepts, channel, virtualHost, Broker, three kinds of exchange, native implementation and spring boot integration

RabbitMQ basic concepts 1-1: basic architecture diagram Figure from https://www.cnblogs.com/xiaozhang666/p/13866121.html Rabbitmq version: RabbitMQ 3.9.7 maven version: com.rabbitmq amqp-client 5.10.0

Posted by NINTHTJ on Tue, 12 Oct 2021 01:12:57 +0530

RabbitMq how to ensure idempotent consumption of messages in practice

catalogue 1, Message idempotency 2, Solution 3, Code 1, Message idempotency In programming, the characteristic of an idempotent operation is that the result of any multiple execution is the same as that of one execution. In mq, due to network failure or client delay consumption, the automatic rUTF-8...

Posted by jh21236 on Tue, 12 Oct 2021 01:27:00 +0530

Multithreading: threaded collaboration

1. Thread communication Application scenario: producer and consumer issues If only one commodity can be stored in the warehouse, the producer will put the produced products into the warehouse, and the consumer will take away the products from the warehouse for consumption.If there is no producUTF-8...

Posted by marschen on Wed, 20 Oct 2021 23:44:27 +0530