All Products
Search
Document Center

ApsaraMQ for RabbitMQ:SDKs and sample code

Last Updated:Nov 05, 2024

This topic lists ApsaraMQ for RabbitMQ SDKs for multiple programming languages in scenarios in which you use the AccessKey pair of an Alibaba Cloud account or a Resource Access Management (RAM) user within the account to generate a pair of username and password or use a RAM role to grant permissions across Alibaba Cloud accounts.

Open source RabbitMQ SDKs (Alibaba Cloud account or RAM user)

ApsaraMQ for RabbitMQ allows you to use open source RabbitMQ SDKs for all programming languages to send and receive messages over AMQP 0-9-1. The following table describes the programming languages and frameworks supported by open source RabbitMQ SDKs over AMQP. If you generate a pair of username and password by using the AccessKey pair of an Alibaba Cloud account or a RAM user within the account, you can use an open source RabbitMQ SDK to send and receive messages after the pair of username and password is generated in the ApsaraMQ for RabbitMQ console.

Table 1. Programming languages and frameworks supported by open source RabbitMQ SDKs over AMQP

Programming language or framework

SDK

Java

RabbitMQ Java Client Library

Spring framework

Spring AMQP project for Java

.NET

.NET SDK

Python

Python SDK

PHP

PHP SDK

Rust

Rust SDK

C and C++

C and C++ SDK

Go

Go SDK

JavaScript and Node

JavaScript and Node SDK

Objective-C and Swift

Objective-C and Swift SDK

Others

For more information, see Clients Libraries and Developer Tools.

ApsaraMQ for RabbitMQ SDKs (RAM role for cross-account authorization)

If you use the temporary Security Token Service (STS) token generated for a RAM role to access ApsaraMQ for RabbitMQ, you must use an ApsaraMQ for RabbitMQ SDK to send and receive messages. Compared with open source RabbitMQ SDKs, ApsaraMQ for RabbitMQ SDKs require signature dependencies.

ApsaraMQ for RabbitMQ SDKs support multiple programming languages and frameworks. The following table describes the programming languages and frameworks.

Table 2. Programming languages and frameworks supported by ApsaraMQ for RabbitMQ SDKs

Programming language or framework

SDK

C++

amqp-cpp-demo

.NET

amqp-dotnet-demo

Go

amqp-go-utils

Node.js

amqp-node-demo

PHP

amqp-php-demo

Python

Ruby

amqp-ruby-demo

Java

amqp-java-demo

Spring