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

RabbitMQ Client API Description

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-04 15:02:28
This document introduces the core APIs supported by the RabbitMQ client and their features in detail, covering key operations such as message production and consumption, exchange/queue management, flow control, and reliability assurance. It serves as a quick reference and integration guide for developers to help you efficiently use RabbitMQ for message queue development.

Message Production and Consumption

API
Feature Description
basicPublish
Sends messages to a specified exchange. It supports configuring the Routing Key and message properties.
basicConsume
Subscribes to a queue in push mode. The server actively pushes messages to consumers.
basicGet
Pulls a single message actively from the queue in pull mode (suitable for low-frequency consumption scenarios).
basicAck
Manually acknowledges successful message processing (ensuring message reliability).
basicNack
Rejects messages in batches. It supports the requeue parameter to control whether to redeliver messages.
basicReject
Rejects a single message (the feature is similar to basicNack, but only for a single message).
basicCancel
Cancels consumer subscriptions and terminates message pushes.
basicRecover
Requeues unacknowledged messages (with an option to redeliver them).

Exchange Management

API
Feature Description
exchangeDeclare
Declares and creates an exchange with configurable properties such as the type (such as direct/fanout) and persistence.
exchangeDeclarePassive
Checks whether the specified exchange exists, and throws an exception if it does not exist (for verification).
exchangeDeclareNoWait
Declares an exchange asynchronously with no return value (suitable for high-performance scenarios and requires manual error handling).
exchangeDelete
Deletes the specified exchange (only effective when it has no binding relationships).
exchangeBind
Binds two exchanges to implement message routing and forwarding (such as log distribution scenarios).
exchangeUnbind
Unbinds the binding relationship between exchanges.
exchangeDeleteNoWait
Deletes an exchange asynchronously without returning the operation result.
exchangeBindNoWait
Declares a binding relationship between exchanges and creates one asynchronously if it does not exist.
exchangeUnbindNoWait
Unbinds an exchange asynchronously with no return value.

Queue Management

API
Feature Description
queueDeclare
Declares and creates a queue with configurable properties such as persistence and exclusivity.
queueDeclarePassive
Checks whether the specified queue exists, and throws an exception if it does not exist.
queueBind
Binds a queue to an exchange and specifies the routing rules (Routing Key).
queueUnbind
Unbinds the binding relationship between a queue and an exchange.
queuePurge
Purges all messages in the specified queue (proceed with caution, as purged data cannot be recovered).
queueDelete
Deletes the specified queue (only effective when it has no consumers).
queueDeclareNoWait
Declares a queue and creates one asynchronously if it does not exist.
queueDeleteNoWait
Deletes a queue asynchronously without returning the operation result.
queueBindNoWait
Declares a binding relationship between a queue and an exchange and binds one asynchronously if it does not exist.

Traffic Control and Reliability

API
Feature Description
basicQos
Limits the maximum number of unacknowledged messages for a consumer on a specific channel or connection (to achieve fair distribution or traffic control).
txSelect
Sets the current channel to transaction mode to enable a transaction.
confirmSelect
Enable the Publisher Confirm mode (a high-performance alternative scheme for asynchronously confirming message delivery to the broker).
txCommit
Commits a transaction and confirms all uncommitted operations (such as message publishing and acknowledgment) on the current channel.
txRollback
Rolls back a transaction and undoes uncommitted operations on the current channel (messages will be requeued).

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan