ApsaraMQ for RabbitMQ utilise le protocole AMQP 0-9-1 et est compatible avec les bibliothèques clientes RabbitMQ open source. Le SDK à utiliser dépend de votre méthode d'authentification :
Compte Alibaba Cloud ou utilisateur RAM -- Utilisez n'importe quel SDK RabbitMQ open source. Générez un nom d'utilisateur et un mot de passe dans la console ApsaraMQ for RabbitMQ, puis connectez-vous à l'aide de la bibliothèque cliente standard adaptée à votre langage.
Rôle RAM (autorisation intercomptes) -- Utilisez un SDK ApsaraMQ for RabbitMQ. Ces SDK ajoutent une dépendance de signature au client open source pour gérer l'authentification. L'API de messagerie reste identique.
SDK RabbitMQ open source
Ces bibliothèques clientes fonctionnent avec tout langage ou framework prenant en charge le protocole AMQP 0-9-1.
**Langage ou framework**
|
**SDK**
| | --- | --- | |
Java
|
[Bibliothèque cliente Java RabbitMQ](https://www.rabbitmq.com/java-client.html)
| |
Spring Framework
|
[Projet Spring AMQP pour Java](https://spring.io/projects/spring-amqp)
| |
.NET
|
[SDK .NET](https://www.rabbitmq.com/devtools.html#dotnet-dev)
| |
Python
|
[SDK Python](https://www.rabbitmq.com/devtools.html#python-dev)
| |
PHP
|
[SDK PHP](https://www.rabbitmq.com/devtools.html#php-dev)
| |
Rust
|
[SDK Rust](https://www.rabbitmq.com/devtools.html#rust-dev)
| |
C et C++
|
[SDK C et C++](https://www.rabbitmq.com/devtools.html#c-dev)
| |
Go
|
[SDK Go](https://www.rabbitmq.com/devtools.html#go-dev)
| |
JavaScript et Node
|
[SDK JavaScript et Node](https://www.rabbitmq.com/devtools.html#node-dev)
| |
Objective-C et Swift
|
[SDK Objective-C et Swift](https://www.rabbitmq.com/devtools.html#objc-swift-dev)
|
Pour découvrir d'autres langages pris en charge, consultez la page Bibliothèques clientes et outils pour développeurs sur le site web RabbitMQ.
SDK ApsaraMQ for RabbitMQ
Utilisez ces SDK lorsque vous vous authentifiez avec un rôle RAM pour une autorisation intercomptes. Chaque SDK intègre une dépendance de signature afin de gérer l'authentification par rôle RAM. L'API de messagerie est identique à celle du client open source.
**Langage ou framework**
|
**SDK et exemple de code**
| | --- | --- | |
Java
|
[amqp-java-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-java-demo)
| |
Spring
|
[amqp-springboot-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-springboot-demo/SprintBootDemo), [amqp-spring-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/spring-rabbit-demo), [amqp-springcloud-stream-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-springcloud-stream-demo), [amqp-springcloudbus-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-springcloudbus-demo)
| |
Python
|
[amqp-python-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-python-demo), [amqp-python-celery-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-python-celery-demo)
| |
Go
|
[amqp-go-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-go-demo)
| |
.NET
|
[amqp-dotnet-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-dotnet-demo)
| |
C++
|
[amqp-cpp-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-cpp11-demo)
| |
Node.js
|
[amqp-node-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-node-demo)
| |
PHP
|
[amqp-php-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-php-demo)
| |
Ruby
|
[amqp-ruby-demo](https://github.com/AliwareMQ/amqp-demos/tree/master/amqp-ruby-demo)
|