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

After you obtain 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 Debian RPM
2020-11-26 2.1.1 aliyun-ons-win64-sdk.zip 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 Windows (64-bit) SDK is supported.

Bugfixes

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

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

Bugfixes

  • The ROCKETMQ_LOG_HOME environment variable and the ONSFactoryProperty::LogPath configuration item can be used to specify a log path.
  • The bug that results in message body truncation due to TZCNT in the Sandy Bridge microarchitecture is fixed.
  • 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 SDK for Java v1.8.0. The features of ons-cpp v2.0.0 are the same as those of 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 running 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

  • The following two methods are provided for instance users to access Message Queue for Apache RocketMQ, whereas the access methods for non-instance users remain unchanged:
    • Configure NAMESRV_ADDR that contains InstanceId.
    • Configure 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 for 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.

Bugfixes

  • 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

Bugfixes

  • Core dumps caused by consumer shutdown are fixed.
  • HTTP access is supported in Windows by the underlying URL class.
  • The timestamp error of message traces is fixed.
  • The bug 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 None None

New features

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

Bugfixes

  • 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 None None

New features

  • The earlier version of SDK for C# is abandoned. A new version of 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 v1.6.2.

Bugfixes

  • Core dumps caused by shutdown of ordered message producers or consumers are fixed.

ons-cpp v1.0.7

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

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 number of message retries upon failures 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.

Bugfixes

  • Several bugs in message tracing are fixed.
  • Core dumps caused by shutdown are fixed.
  • Memory leaks are fixed.
  • The problem is fixed where exceptions are thrown if a message tag contains the special character "||".