This topic describes the download links, release date, and updates of the SDK for C++. You can use the applicable SDK for C++ to send and subscribe to messages based on your business requirements.

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

ons-cpp v2.1.1

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

Bugs fixed

  • The memory usage for the embedded Substrate VM (SVM) during runtime is optimized.

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

Bugs fixed

  • The ROCKETMQ_LOG_HOME environment variable is supported. ONSFactoryProperty::LogPath 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 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 ons-cpp v1.x.x interface.
  • Faster startup and more efficient operations 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:
    • Configure NAMESRV_ADDR that contains InstanceId.
    • Configure InstanceId and NAMESRV_ADDR that do 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 Enterprise Platinum Edition users of Message Queue for Apache RocketMQ.
  • The PushConsumer operation can be called to pull messages in asynchronous mode at a higher speed.

Bugs fixed

  • The issues related to Ordered Message 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

Bugs fixed

  • Core dumps caused by consumer shutdown are fixed.
  • HTTP access is supported on Windows by the underlying URL class.
  • The timestamp error of message tracing is fixed.
  • The bug that results in an invalid IP address in message tracing is fixed.
  • The memory leakage on Windows is 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

  • One-way message transmission is supported.
  • Ordered messages are supported.
  • Timeout duration settings can be configured for ordered messages.
  • Message retry settings can be configured.

Bugs fixed

  • Resource leakage caused by shutdown is 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 SDK for C# is abandoned. A new version of SDK for C# is generated based on 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.

Feature optimization

  • The Boost library is upgraded to v1.6.2.

Bugs fixed

  • Core dumps caused by the exit of an ordered message 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 one by one by using the callback function.
  • Ordered messages are supported.
  • Timeout duration settings can be configured for ordered messages.
  • Message retry settings can be configured.

Feature optimization

  • The message tracing feature is optimized by sending trace data in a separate thread pool.
  • The granularity of the TCP lock is optimized.

Bugs fixed

  • Several bugs in message tracing are fixed.
  • Core dumps caused by shutdown are fixed.
  • The memory leakage is fixed.
  • The exception that occurs if the message tag contains the special character "||" is resolved.