AMQP Actual Warfare for Message Middleware 2

Instance Analysis Previously, we have read the documentation of AMQP, and have a general understanding of AMQP. This paper will go through the basic operation of AMQP from an example. Get ready Environmental Science RabbitMQ server 3.7.16 RabbitMQ client 5.7.3 The client code uses the RabbitMQ tutorial as follows: public static void main(String ...

Posted by klik on Sat, 22 Feb 2020 19:50:15 -0800

RabbitMQ from entry to Mastery Series: details of work queues

(1) RabbitMQ work queue model structure The work queue model increases the number of consumers compared to simple queues. The producer provides the message to the message queue, and the consumer can get the message in the queue. By default, polling distribution is used to distribute messages t ...

Posted by neveriwas on Fri, 21 Feb 2020 05:52:43 -0800

Spring Boot integration RabbitMQ send receive JSON

By default, the message sent by RabbitMQ is converted to bytecode. Here's how to send JSON data. ObjectMapper The easiest way to send JSON data is to use JSON tool classes such as ObjectMapper to convert the object to JSON format, and then send it. As follows: @Autowired private ObjectMapper objectMapper; public void sendOrder(Order orde ...

Posted by delboy1978uk on Thu, 13 Feb 2020 11:35:21 -0800

RabbitMq dead letter queue

When the messages in the queue expire, or reach the maximum length and are deleted, or reach the maximum space and are deleted, the deleted information can be pushed to other switches, and other consumers can subscribe to the deleted messages and process them. Preparation elements: a producer, a normal ...

Posted by dirkers on Thu, 13 Feb 2020 06:31:25 -0800

Learning and arrangement of RabbitMQ -- integration of Spring AMQP and RabbitMQ

Preface In the previous blog, I sorted out some advanced features of RabbitMQ, such as confirm message confirmation mechanism, consumer side flow restriction, etc. Today, this blog is mainly about the integration of Spring AMQP and RabbitMQ, mainly about the use of some common components. It's rela ...

Posted by roughie on Tue, 11 Feb 2020 06:58:07 -0800

Spring cloud bus auto refresh configuration

Problems solved To solve the problem that the project needs to be restarted after the configuration file changes After changing the configuration file in git, push the configuration to the corresponding project to complete the configuration update without restarting Framework Modify the archite ...

Posted by vasoftwaresolutions on Tue, 11 Feb 2020 06:25:18 -0800

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall First, we need to install RabbitMQ. Before installing RabbitMQ, we need to install Erlang, because RabbitMQ is based on Erlang. For specific steps, click the following link: After installation, RabbitMQ i ...

Posted by newjsguy on Tue, 11 Feb 2020 01:49:52 -0800

Distributed link tracking Sleuth and Zipkin

    with the development of business, system splitting leads to more complex system call link. A front-end request may need to call many back-end services in the end to complete. When the whole request becomes slow or unavailable, we cannot know that the request is caused by one or some b ...

Posted by Person on Sun, 09 Feb 2020 03:55:59 -0800

RabbitMQ learn the basic knowledge of three message queues

1, Basic knowledge (1) Provider Message producer is the procedure of message delivery. (2) Consumer Message consumers are message receiving programs (3) Messaging when message queuing is not used (4) Message passing method after using message queue (5) What is message queuing A queue is like a warehouse ...

Posted by corporateboy on Wed, 05 Feb 2020 05:46:48 -0800

Rabbit MQ practice [topic switch]

spring boot version: 2.1.10.RELEASE This article involves two projects, rabbitmq topic provider and rabbitmq topic consumer, with the same dependency and configuration. Dependent dependence <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot ...

Posted by lbraine on Mon, 03 Feb 2020 06:44:42 -0800