mq-http-sdk

Aliyun Message Queue(MQ) Nodejs Http SDK

Usage no npm install needed!

<script type="module">
  import mqHttpSdk from 'https://cdn.skypack.dev/mq-http-sdk';
</script>

README

MQ Nodejs HTTP SDK

Alyun MQ Documents: http://www.aliyun.com/product/ons

Aliyun MQ Console: https://ons.console.aliyun.com

Installation

Add dependency @aliyunmq/mq-http-sdk, get the latest version from npmjs

npm install --save

Note: nodejs >= 7.6.0

docs

Documents

Sample

V1.0.1 Samples

Publish Message

Consume Message

V1.0.2 Samples

Publish Message

Consume Message

Transaction Message

Note for 1.0.2: Http consumer only support timer msg(less than 3 days), no matter the msg is produced from http or tcp protocal.

注意

  • 默认实例instanceId为空
  • consumerGroup和tag需要保持订阅一致