This topic describes the versions of Apache RocketMQ 5.x SDK for Java. You can choose a version of the SDK for Java that meets your business requirements to send and receive messages based on the description of this topic.
Apache RocketMQ 5.x SDK for Java supports Java Development Kit (JDK) 1.8 or later.
Version description
gRPC SDKs
For higher performance and better user experience, we recommend that you use Apache RocketMQ 5.x SDKs that use gRPC V2. The following SDK versions are tested and verified by Alibaba Cloud engineers. We recommend that you use the following SDK versions to send and receive messages.
Directly import the dependency
<dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-client-java</artifactId> <version>5.0.7</version> </dependency>
Import the RocketMQ-Spring dependency
<dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-v5-client-spring-boot-starter</artifactId> <version>2.3.1</version> </dependency>
Remoting SDKs
If you want to use the Remoting protocol, you can use an Apache RocketMQ SDK to access ApsaraMQ for RocketMQ. The following SDK versions are recommended:
Directly import the dependency
<dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>5.3.1</version> </dependency> <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-acl</artifactId> <version>5.3.1</version> </dependency>
Import the RocketMQ-Spring dependency
<dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-spring-boot-starter</artifactId> <version>2.3.1</version> </dependency>
We recommend that you use an SDK that uses the gRPC protocol to connect a new business system to ApsaraMQ for RocketMQ for higher performance and better user experience. For information about the SDK types, see Overview.
You can use the repository coordinate to determine whether an SDK uses the Remoting protocol or the gRPC protocol. If the repository coordinate of the SDK is
rocketmq-client
, the SDK uses the Remoting protocol. If the repository coordinate of the SDK isrocketmq-client-java
, the SDK uses the gRPC protocol.
Historical versions
gRPC SDKs
For information about historical versions, see Versions.
Remoting SDKs
For information about historical versions, see Versions.