How does RocketMQ Broker perceive abnormal downtime and normal offline of consumers by analyzing the fishing source code?

1, Foreword When studying the consumption timeout of RocketMQ Consumer, which leads to repeated consumption, I suddenly thought of a thing: how does the Broker perceive the abnormal downtime and offline of the Consumer/Producer? And how can the remaining consumers quickly redo the load?, Originally, after sorting out the source code of Broker ...

Added by viperdk on Tue, 04 Jan 2022 03:36:25 +0200

RabbitMQ Dead Letter Queue

1. The concept of dead letter queues _First, clarify this definition from the conceptual explanation. Dead faith, as its name implies, is a message that cannot be consumed. Literally, it means that producer delivers the message to broker or directly to queue. Consumerer takes the message out of queue for consumption, but sometimes some mes ...

Added by D_tunisia on Mon, 27 Dec 2021 16:55:00 +0200

rabbitmq switch + dead letter queue + delay queue

5. Switch In the previous section, we created a work queue. We assume that behind the work queue, each task is delivered to exactly one consumer (work process). In this section, we will do something completely different - we will convey the message to multiple consumers. This mode is called publish / subscribe To illustrate this pattern, we w ...

Added by nileshkulkarni on Mon, 27 Dec 2021 01:21:58 +0200

Basic learning of RabbitMQ

preface Basic learning about RabbitMQ 1, What is RabbiMQ? RabbitMQ is a message oriented middleware: it accepts and forwards messages. You can regard it as an express site. When you want to send a package, you put your package in the express station, and the courier will eventually send your express to the recipient. According to t ...

Added by Steppio on Sun, 26 Dec 2021 01:10:10 +0200

Amazon SQS + Lambda implements a custom function to trigger when a new message arrives at the queue

Existing requirements: when the producer sends a new message to the message queue, the message queue should process it automatically according to the message, such as pushing the message to the consumer. Amazon SQS message queue itself does not support further processing when new messages arrive at the queue, but we can realize this requiremen ...

Added by X.Cyclop on Thu, 23 Dec 2021 21:54:36 +0200

RabbitMQ tutorial implements publishing confirmation PublishConfirm

Publisher confirms is an extension of RabbitMQ to realize reliable publishing. When publisher confirmation is enabled on the channel, if the messages published by the client are asynchronously confirmed by the proxy, it means that they have been processed on the server. In this tutorial, we will use publisher confirms to ensure that published m ...

Added by FredFredrickson2 on Thu, 23 Dec 2021 13:45:15 +0200

This article describes in detail the scenarios in which message queuing is applied

When we are developing or designing a website, we often encounter mass SMS, mass email, or send in station letters to all users of the system, or in the order system, we need to record a large number of logs. If our system is an e-commerce system, when designing rush buying and second kill activities, the server is high and distributed, and we ...

Added by zesoft.net on Wed, 08 Dec 2021 23:31:48 +0200

RabbitMQ retry mechanism

The consumer may report an error during message processing. How to reprocess the message? There are two solutions. Record the number of retries in redis or database. After the maximum number of retries is reached, the messages enter the dead letter queue or other queues, and then process these messages separately; Use the retry function i ...

Added by daddymac on Wed, 08 Dec 2021 07:29:39 +0200

Alipay 2 Side: If an order is generated for 30 minutes without payment, it will be cancelled automatically. How can this be achieved? Difference between deferred and timed tasks

Recently, readers have encountered a problem with Alipay: If an order is generated without payment for 30 minutes, it will be cancelled automatically. How can I do this? In fact, such delayed tasks are often required in development, such as Generate order 30 minutes unpaid, cancel automatically Send a text message to the user 60 seconds ...

Added by robgudgeon on Wed, 08 Dec 2021 06:31:42 +0200

Talk to the interviewer about RocketMQ message sending, MessgQueue selection and high availability mechanism source code

Source version 4.8.0 Message sending source code entry The simplest message sending code DefaultMQProducer producer = new DefaultMQProducer("please_rename_unique_group_name"); producer.setNamesrvAddr("127.0.0.1:9876"); producer.start(); Message msg = new Message("TopicTest" /* Topic */, ...

Added by Langridge on Sun, 05 Dec 2021 19:18:36 +0200