This topic describes the updates of releases of Message Queue for Apache RocketMQ SDK for C++ and provides release dates and related download links. This helps you choose an appropriate version of the SDK for C++ to send and subscribe to messages based on your business needs.

After you obtain the SDK for C++, you must prepare an environment for the SDK based on SDK instructions. The environment preparations vary with SDK versions.

ons-cpp v2.1.1

Release date Version Download link for Windows Download link for Linux Download link for Darwin
TAR.GZ (CentOS 8) TAR.GZ Debian RPM
2020-11-26 2.1.1 aliyun-ons-win64-sdk.zip aliyun-mq-linux-cpp-sdk-centos8.tar.gz aliyun-mq-linux-cpp-sdk.tar.gz aliyun-mq-linux-cpp-amd64.deb aliyun-mq-linux-cpp-1.alios7.x86-64.rpm aliyun-mq-darwin-cpp-sdk.tar.gz

New features

  • The 64-bit version of Windows is supported.

Resolved issues

  • The maximum heap memory of Substrate VM (SVM) is 64 MB in size, and the maximum runtime memory is 300 MB in size.

ons-cpp v2.1.0

Release date Version Download link for Windows Download link for Linux Download link for Darwin
2020-11-06 2.1.0 Not supported aliyun-mq-linux-cpp-sdk.tar.gz aliyun-mq-darwin-cpp-sdk.tar.gz

Resolved issues

  • The ROCKETMQ_LOG_HOME environment variable and the ONSFactoryProperty::LogPath configuration item can be used to specify a log path.
  • The issue is fixed where the TZCNT instruction causes message body truncation in the Sandy Bridge microarchitecture.
  • The ons::Message(const std::string&topic, const std::string&body) constructor is added to ensure compatibility with v1.x.x.

ons-cpp v2.0.0

Release date Version Download link for Windows Download link for Linux Download link for Darwin
2019-06-28 2.0.0 Not supported aliyun-mq-linux-cpp-sdk.tar.gz aliyun-mq-darwin-cpp-sdk.tar.gz

New features

  • A native image is used to generate a C++ native library based on the kernel of the SDK for Java v1.8.0. The features of ons-cpp v2.0.0 are the same as those of the SDK for Java v1.8.0.
  • Compatibility with earlier versions is implemented based on the interfaces of ons-cpp v1.x.x.
  • Faster startup and more efficient execution are supported without dependence on third parties.

ons-cpp v1.1.2

Release date Version Download link for Windows Download link for Linux
2019-01-16 1.1.2 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.tar.gz

New features

  • Instantiated users can access Message Queue for Apache RocketMQ by using the following two methods whereas the access methods for non-instantiated users remain unchanged:
    • Set NAMESRV_ADDR that contains InstanceId.
    • Set InstanceId and NAMESRV_ADDR that does not contain InstanceId.
  • ProducerId and ConsumerId are replaced with Group ID.

ons-cpp v1.1.1

Release date Version Download link for Windows Download link for Linux
2018-07-31 1.1.1 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.tar.gz

New features

  • The Secure Sockets Layer (SSL) encrypted transmission feature is available to users of Message Queue for Apache RocketMQ Enterprise Platinum Edition.
  • The PushConsumer class can be used to pull messages in asynchronous mode at a higher speed.

Resolved issues

  • The issues related to ordered messages are fixed.
  • The logging feature is optimized to provide logs only when rebalancing results change.
  • The system flag can be serialized to the one-way request header.

Earlier versions

ons-cpp v1.1.0

Release date Version Download link for Windows Download link for Linux
2017-07-25 1.1.0 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.zip

Resolved issues

  • Core dumps caused by consumer shutdown are fixed.
  • The issue is fixed where access over HTTP is unavailable to the underlying URL class in Windows.
  • The timestamp error of message traces is fixed.
  • The issue is fixed where local IP addresses are incorrectly displayed in message traces.
  • Memory leaks in Windows are fixed.

ons-cpp v1.0.9

Release date Version Download link for Windows Download link for Linux
2016-12-29 1.0.9 Not supported Not supported

New features

  • Messages can be sent in one-way mode.
  • Ordered messages are supported.
  • The timeout period for sending messages can be set.
  • The maximum number of retries allowed for message sending can be set.

Resolved issues

  • Resource leaks caused by shutdown are fixed.
  • Core dumps caused by shutdown are fixed.

ons-cpp v1.0.8

Release date Version Download link for Windows Download link for Linux
2016-12-02 1.0.8 Not supported Not supported

New features

  • The earlier version of the SDK for C# is abandoned. A new version of the SDK for C# is generated by using SWIG to provide more stable support for ASP.NET.
  • Log paths can be customized.
  • Built-in UTF-8 encoding is provided to support implicit encoding and decoding.
  • The MQ_GUIDE document and ASP.NET demo are provided.

Optimized features

  • The boost library is updated to 1.6.2.

Resolved issues

  • The issue is fixed where core dumps occur when the producers or consumers of ordered messages are shut down.

ons-cpp v1.0.7

Release date Version Download link for Windows Download link for Linux
2016-11-15 1.0.7 Not supported Not supported

New features

  • Consumption throttling is provided for consumers. By default, 1,000 messages are pulled and stored in the memory and then called back by the callback function one by one.
  • Ordered messages are supported.
  • The timeout period for sending messages can be set.
  • The maximum number of retries allowed for message sending can be set.

Optimized features

  • The message tracing feature is optimized. A separate thread pool is used to send trace data.
  • The granularity of the TCP lock is optimized.

Resolved issues

  • Several issues related to message tracing are fixed.
  • Core dumps caused by shutdown are fixed.
  • Memory leaks are fixed.
  • The issue is fixed where exceptions are thrown if a message tag contains the special character ||.