This topic describes the C++ SDK version information, including the download link, release time, and updates, so that you can obtain the applicable C++ SDK to send and subscribe to messages as needed.

After obtaining the C++ SDK, you need to prepare the corresponding environment according to SDK instructions. The environment preparation steps vary with SDK versions.

ons-cpp v2.0.0

Date Version Download (Windows version) Download (Linux version) Download (Darwin version)
2019-06-28 2.0.0 Not supported aliyun-mq-linux-cpp-sdk.tar.gz aliyun-mq-darwin-cpp-sdk.tar.gz

New features

  • Used native-image to generate a C++ native library based on the kernel of Java SDK v1.8.0 for Message Queue for Apache RocketMQ, with the functions consistent with those of the existing Java SDK.
  • Compatible with earlier versions based on the ons-cpp v1.x.x interface.
  • No dependence on any third parties, with faster startup and more efficient operation.

ons-cpp v1.1.2

Date Version Download (Windows version) Download (Linux version)
2019-01-16 1.1.2 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.tar.gz

New features

  • Enabled instance user access to the service in either of the following modes (that for non-instance users unchanged):
    • Configure NAMESRV_ADDR with InstanceId.
    • Configure InstanceId and NAMESRV_ADDR without InstanceId.
  • Replaced ProducerId and ConsumerId with Group ID.

ons-cpp v1.1.1

Date Version Download (Windows version) Download (Linux version)
2018-07-31 1.1.1 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.tar.gz

New features

  • Added the Secure Sockets Layer (SSL) encrypted transmission function (applicable only to Enterprise Platinum Edition customers of Message Queue for Apache RocketMQ).
  • Added the feature that PushConsumer pulls messages in asynchronous mode to improve the message push efficiency.

Bugs fixed

  • Fixed issues related to ordered messages.
  • Optimized logging so that logs are printed only when rebalancing results are changed.
  • Fixed the problem that the system flag is not serialized to the one-way request header.

Earlier versions

ons-cpp v1.1.0

Date Version Download (Windows version) Download (Linux version)
2017-07-25 1.1.0 aliyun-mq-windows-cpp-sdk.zip aliyun-mq-linux-cpp-sdk.zip

Bugs fixed

  • Fixed core dump caused by consumer shutdown.
  • Fixed the problem that the underlying URL class does not support HTTP access on Windows.
  • Fixed the timestamp error of message tracing.
  • Fixed the problem that an incorrect IP address is displayed in message tracing.
  • Fixed memory leakage on Windows.

ons-cpp v1.0.9

Date Version Download (Windows version) Download (Linux version)
2016-12-29 1.0.9 None None

New features

  • Supported one-way message transmission.
  • Added ordered messages.
  • Added the timeout duration settings for ordered messages.
  • Added the message retry count settings.

Bugs fixed

  • Fixed resource leakage caused by shutdown.
  • Fixed core dump caused by shutdown.

ons-cpp v1.0.8

Date Version Download (Windows version) Download (Linux version)
2016-12-02 1.0.8 None None

New features

  • Abandoned the earlier C# SDK, and generated a new C# SDK with SWIG, to provide more stable support for ASP.NET.
  • Supported log path customization.
  • Provided built-in Chinese UTF-8 encoding, which implicitly completes encoding and decoding.
  • Added the MQ_GUIDE document and ASP.NET demo.

Function optimization

  • Upgraded the Boost library version to 1.6.2.

Bugs fixed

  • Fixed core dump caused when an ordered message exits.

ons-cpp v1.0.7

Date Version Download (Windows version) Download (Linux version)
2016-11-15 1.0.7 None None

New features

  • Added consumption throttling for consumers. By default, 1,000 messages are pulled and stored in the memory. Then, callback functions of users are called back one by one.
  • Added ordered messages.
  • Added the timeout duration settings for ordered messages.
  • Added the message retry count settings.

Function optimization

  • Improved the message tracing function by sending trace data in a separate thread pool.
  • Optimized the TCP lock granularity.

Bugs fixed

  • Fixed several bugs in message tracing.
  • Fixed core dump caused by shutdown.
  • Fixed the memory leakage.
  • Fixed the problem that an exception occurs when the message tag contains the special character "||".