How to produce a simple message using RabbitMQ

A recent scenario in business is that if a user has not paid for 30 minutes after placing an order in a store, the order needs to be disposed of, either deleted or marked as invalid. Why? 1. Inventory, the user will lock an inventory after placing an order. If the user does not pay, it will occupy the inventory and affect other users'purchase. ...

Posted by cuboidgraphix on Mon, 11 May 2020 04:11:56 +0200

SpringBoot+RabbitMQ learning notes RabbitMQ message persistence processing

I. Introduction   There is an autoDelete attribute in both @ Queue and @ Exchange annotations. The value is a string of boolean type. For example: autoDelete = "false". @Queue: whether to delete the queue automatically after all consumer clients are disconnected: true: delete, false: do not delete. @Exchange: automatically delete the ...

Posted by mslinuz on Wed, 29 Apr 2020 11:52:35 +0200

Spring boot integrates rabbitmq

Before integration, rabbitMqJAR package should be introduced in springboot. The version number can be customized for you. This project follows the version of springboot <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> ...

Posted by animedls on Wed, 22 Apr 2020 16:33:46 +0200

Priority and dead letter queue of RabbitMQ and. net core messages

1. Priority of message If there is a requirement now, we need to push some of the highest priority notifications to the client. We can use the sortedset of redis or the message priority attribute of rabbit we are going to talk about today Producer code using RabbitMQ.Client; using System; using System.Collections.Generic; using System. ...

Posted by andrew_ww on Sat, 18 Apr 2020 17:28:20 +0200

[SpringBoot MQ Series] Introduction to basic usage posture of RabbitListener

[MQ Series] Introduction to basic use posture of RabbitListener The message sending posture of rabbitmq was introduced before. Since there is sending, there must be consumers. In the spring boot environment, consumption is relatively simple. With @ RabbitListener annotation, you can basically meet more than 90% of your business development n ...

Posted by karnegyhall on Mon, 30 Mar 2020 15:05:00 +0200

PHP implementation of RabbitMQ message queue

First, install RabbitMQ corresponding to PHP. Here we use PHP ﹣ AMQP to implement different extension methods with slight differences php extension address: http://pecl.php.net/package/amqp The details are subject to the official website http://www.rabbitmq.com/getstarted.html introduce config.php configuration information BaseMQ.php MQ base ...

Posted by poseidix on Tue, 17 Mar 2020 16:17:27 +0100

Redis real battle - data structure List real battle queue feature realizes message multi thread broadcast notification

Overview: the related content of this series of blog articles comes from the actual combat course recorded by debug in person: Introduction to Redis technology and application scenario practice (SpringBoot2.x + red packet system design and practice) , interested partners can click to learn by themsel ...

Posted by stevietee on Thu, 06 Feb 2020 05:29:49 +0100

rabbitmq series message idempotency processing

1. springboot Integrating Rabbit MQ We need to create two new projects, one as a producer and the other as a consumer.Add an amqp dependency to pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> Add rabbitmq information ...

Posted by Sephirangel on Fri, 17 Jan 2020 02:02:21 +0100

Air flow FAQ

@[toc] Air flow FAQ Installation problem 1. ERROR "Python setup. Py XXX" appears during installation. Question: First, you need to update pip Version required'pip install --upgrade pip' command. Second is setuptools The version is too old, so there are the following problems Command "python setup.py egg_info" failed with error code ...

Posted by ryanthegecko on Sun, 29 Dec 2019 18:31:02 +0100

In the message sent by rabbitmq template, the Date type field is 8 hours later than the current time

Preface The problem encountered in the previous development process is that the time in the message body is 8 hours less than the current time when the rabbitmq template is used to send messages. This is the time zone problem. Let's talk about why it appears. The previous configuration is as follows: @Bean public RabbitTemplate rabbitTempl ...

Posted by lanjoky on Fri, 27 Dec 2019 12:43:39 +0100