You can use Apache RocketMQ TCP client SDKs to connect to ApsaraMQ for RocketMQ.
All Apache RocketMQ SDKs are provided by the Apache RocketMQ community. You can obtain the source code from the community and compile the code by yourself. However, ApsaraMQ for RocketMQ does not provide a Service Level Agreement (SLA) for the code.
Compared with Apache RocketMQ SDKs, ApsaraMQ for RocketMQ SDKs provide more features and higher stability. We recommend that you use ApsaraMQ for RocketMQ SDKs to access ApsaraMQ for RocketMQ. For more information, see Release notes.
Scenarios
You can use Apache RocketMQ TCP client SDKs to access ApsaraMQ for RocketMQ in the following scenarios:
Cloud migration: You need to migrate data from Apache RocketMQ to ApsaraMQ for RocketMQ without code modification on clients.
Hybrid cloud: You need to access Apache RocketMQ brokers that are deployed in data centers and ApsaraMQ for RocketMQ brokers that are deployed on Alibaba Cloud public cloud.
Combination of test and online environments: You need to access Apache RocketMQ brokers that are deployed in test environments and ApsaraMQ for RocketMQ brokers that are deployed in online environments.
Procedure
The procedure varies based on the programming language. For information about how to use ApsaraMQ for RocketMQ SDKs to access ApsaraMQ for RocketMQ, see the following topics:
You cannot use Apache RocketMQ TCP client SDK for Go and Apache RocketMQ TCP client SDK for Python to access ApsaraMQ for RocketMQ. If you want to use SDKs for the preceding programming languages to access ApsaraMQ for RocketMQ, we recommend that you use ApsaraMQ for RocketMQ HTTP client SDKs for the corresponding programming languages. For more information, see the following topics: