tencent cloud

TDMQ for RabbitMQ

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Introduction and Selection of the TDMQ Product Series
What Is TDMQ for RabbitMQ
Strengths
Use Cases
Description of Differences Between Managed Edition and Serverless Edition
Open-Source Version Support Description
Comparison with Open-Source RabbitMQ
High Availability
Use Limits
TDMQ for RabbitMQ-Related Concepts
Regions
Related Cloud Services
Billing
Billing Overview
Pricing
Billing Example
Convert to Monthly Subscription from Hourly Postpaid
Renewal
Viewing Consumption Details
Overdue Payments
Refund
Getting Started
Getting Started Guide
Step 1: Preparations
Step 2: Creating a RabbitMQ Cluster
Step 3: Configuring a Vhost
Step 4: Using the SDK to Send and Receive Messages
Step 5: Querying a Message
Step 6: Deleting Resources
User Guide
Usage Process Guide
Configuring the Account Permission
Creating a Cluster
Configuring a Vhost
Connecting to the Cluster
Managing Messages
Configure Advanced Feature
Managing the Cluster
Viewing Monitoring Data and Configuring Alarm Policy
Use Cases
Use Instructions of Use Cases
RabbitMQ Client Use Cases
RabbitMQ Message Reliability Use Cases
Usage Instructions for MQTT Protocol Supported by RabbitMQ
Migrate Cluster
Migrating RabbitMQ to Cloud
Step 1. Purchasing a TDMQ Instance
Step 2: Migrating Metadata to the Cloud
Step 3: Enabling Dual Read-Write
API Reference (Managed Edition)
API Overview
API Reference (Serverless Edition)
History
Introduction
API Category
Making API Requests
Relevant APIs for RabbitMQ Serverless PAAS Capacity
RabbitMQ Serverless Instance Management APIs
Data Types
Error Codes
SDK Documentation
SDK Overview
Spring Boot Starter Integration
Spring Cloud Stream Integration
Java SDK
Go SDK
Python SDK
PHP SDK
Security and Compliance
Permission Management
Network Security
Deletion Protection
Change Records
CloudAudit
FAQs
Service Level Agreement
Contact Us

Configuring Lazy Queue

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-05 10:23:41
The lazy queue in RabbitMQ is a specially designed type of queue whose core feature is that messages are written directly to the disk for storage rather than being saved in memory first. This design enables lazy queues to significantly reduce memory consumption, making them particularly suitable for scenarios involving large volumes of backlogged messages. When messages arrive at a lazy queue, RabbitMQ immediately persists them to the disk. Only when consumers are ready to process the messages are they loaded into memory.
Lazy queues are suitable for the following scenarios:
A large number of messages need to be processed suddenly, such as when a log collection system may suddenly receive massive log messages during peak business hours.
Low-priority messages or messages that allow delays are processed, such as non-real-time report generation or offline analysis tasks.
The running environment has limited memory resources. An example is edge compute nodes or embedded devices.
Historical messages need to be saved for extended periods without consuming excessive memory. An example is the storage of certain compliance audit logs.
Note that since messages are written directly to the disk, lazy queues have slightly lower throughput performance than classic queues. They are typically suitable for business scenarios that do not require high real-time performance but need stable processing of large volumes of messages.

Constraints and Limitations

Currently, only Managed Edition clusters support configuring lazy queues. The Serverless Edition features distributed high-availability clusters and does not require configuring lazy queues.

Configuring Lazy Queue

When creating a queue, select whether to enable Lazy Mode in Other Advanced Options. For specific steps, see Creating a Queue.



Ajuda e Suporte

Esta página foi útil?

comentários