tencent cloud

TDMQ for RocketMQ

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Introduction and Selection of the TDMQ Product Series
What Is TDMQ for RocketMQ
Strengths
Scenarios
Product Series
Comparison with Open-Source RocketMQ
High Availability
Quotas and Limits
Supported Regions
Basic Concepts
Billing
Billing Overview
Pricing
Billing Examples
Pay-as-you-go Switch to Monthly Subscription (5.x)
Renewal
Viewing Consumption Details
Refund
Overdue Payments
Getting Started
Getting Started Guide
Preparations
Step 1: Creating TDMQ for RocketMQ Resources
Step 2: Using the SDK to Send and Receive Messages (Recommended)
Step 2: Running the TDMQ for RocketMQ Client (Optional)
Step 3: Querying Messages
Step 4: Deleting Resources
User Guide
Usage Process Guide
Configuring Account Permissions
Creating the Cluster
Configuring the Namespace
Configuring the Topic
Configuring the Group
Connecting to the Cluster
Managing Messages
Managing the Cluster
Viewing Monitoring Data and Configuring Alarms
Cross-Cluster Message Replication
Use Cases
Naming Conventions for Common Concepts of TDMQ for RocketMQ
RocketMQ Client Use Cases
RocketMQ Performance Load Testing and Capacity Assessment
Access over HTTP
Client Risk Descriptions and Update Guide
Migration Guide for TencentCloud API Operations Related to RocketMQ 4.x Cluster Roles
Migration Guide
Disruptive Migration
Seamless Migration
Developer Guide
Message Types
Message Filtering
Message Retries
POP Consumption Mode (5.x)
Clustering Consumption and Broadcasting Consumption
Subscription Relationship Consistency
Traffic Throttling
​​API Reference(5.x)
History
API Category
Making API Requests
Topic APIs
Consumer Group APIs
Message APIs
Role Authentication APIs
Hitless Migration APIs
Cloud Migration APIs
Cluster APIs
Data Types
Error Codes
​​API Reference(4.x)
SDK Reference
SDK Overview
5.x SDK
4.x SDK
Security and Compliance
Permission Management
CloudAudit
Deletion Protection
FAQs
4.x Instance FAQs
Agreements
TDMQ for RocketMQ Service Level Agreement
Contact Us

Scenarios

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-23 17:09:48
As a distributed message middleware built based on Apache RocketMQ, TDMQ for RocketMQ is used for message communication between distributed systems or components. It has features such as massive message backlogs, low latency, high throughput, high reliability, and strong transaction consistency. It is suitable for scenarios such as asynchronous decoupling, peak shifting, sequential message sending and receiving, distributed transaction consistency, and log synchronization.

Asynchronous Decoupling

The transaction engine is the core system of Tencent billing. The data of each transaction order needs to be monitored by dozens of downstream business systems, including inventory system, warehousing system, promotion system, and points system. Such systems use different message processing logic, making it impossible for a single system to adapt to every associated business. In this case, TDMQ for RocketMQ can decouple multiple business systems to reduce the impact between systems and improve the response speed and robustness of core business.




Peak Shifting

Companies hold marketing campaigns such as new product launch and festival red packet grabbing from time to time, which often cause temporary traffic spikes and pose huge challenges to each backend application system. A simple response by scale-out can lead to a waste of resources. In this case, TDMQ for RocketMQ can withstand spikes in traffic. It backlogs messages during peak periods and consumes them in the downstream during off-peak periods. This balances the processing capacities of upstream and downstream systems and improves system availability.




Subscription Notifications

TDMQ for RocketMQ provides scheduled and delayed messages for e-commerce scenarios that require subscription notifications.
Scheduled messages: After a message is sent to the server, the business may want the consumer to receive it at a later time point rather than immediately. Messages of this type are called scheduled messages.
Delayed messages: After a message is sent to the server, the business may want the consumer to receive it after a period of time rather than immediately. Messages of this type are called delayed messages.
For details about scheduled and delayed messages, see Scheduled and Delayed Messages.




Consistency of Distributed Transactions

TDMQ for RocketMQ provides distributed transactional messages to loosely couple applications. Reliable transmission and multi-replica technology can ensure that messages are not lost, and the At-Least-Once feature ensures eventual data consistency.
The payment system, as a producer, forms a transaction with TDMQ for RocketMQ to ensure consistency in local transactions and message sending.
Downstream business systems (such as billing and notifications), as consumers, process messages in parallel.
Reliable retries of messages are supported to ensure eventual data consistency.
The transactional messages of TDMQ for RocketMQ are used to process transactions, which can greatly improve processing efficiency and performance. A billing system often has a long transaction linkage with a significant chance of error or timeout. The automated repush and massive message backlog features can be used to provide transaction compensation, and the eventual consistency of payment tips notifications and transaction pushes can also be achieved through TDMQ for RocketMQ.
For detailed information about transactional messages, see Transactional Messages.




Sequential Message Sending and Receiving

Ordered messages are advanced messages provided by TDMQ for RocketMQ. For a specified topic, messages are published and consumed in strict accordance with the First In First Out (FIFO) principle, which means that the messages sent first are consumed first, and the messages sent later are consumed later. Ordered messages are often used in the following business scenarios:
Order creation: In certain e-commerce systems, the creation, payment, refund, and logistics messages related to the same order must be produced or consumed in strict sequence; otherwise, the order status will be messed up during consumption, which will affect the normal operation of the business. Therefore, the messages of this order must be produced and consumed in a certain sequence in the client and message queue. At the same time, the messages are sequentially dependent, and the processing of the next message must be dependent on the processing result of the preceding message.
Log synchronization: In the scenario of sequential event processing or real-time incremental data synchronization, ordered messages can also play a big role. For example, it is necessary to ensure that database operations are in sequence when MySQL binlogs are synchronized.
Finance: In certain matchmaking transaction scenarios such as certain securities transactions, the first bidder is given priority in the case of the same bidding price, so it is necessary to produce and consume ordered messages in a FIFO manner.
For detailed information about ordered messages, see Ordered Messages.





Distributed Cache Synchronization

When enterprises run promotional sales with numerous product categories and frequent price changes, repeated user queries for product prices can overload the network interface cards (NICs) of cache servers, slowing down page loading speeds. By leveraging the broadcasting consumption mode of TDMQ for RocketMQ, each price update message is consumed once by every node, effectively synchronizing price information across all required machines and replacing the traditional caching mechanism.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백