mq-http-sdk
Version:
Aliyun Message Queue(MQ) Nodejs Http SDK
39 lines (23 loc) • 1.13 kB
Markdown
# 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](https://www.npmjs.com/)
```bash
npm install --save
```
*Note: nodejs >= 7.6.0*
## docs
[Documents](https://aliyunmq.github.io/mq-http-nodejs-sdk/)
## Sample
### V1.0.1 Samples
[Publish Message](https://github.com/aliyunmq/mq-http-samples/blob/master/nodejs/producer.js)
[Consume Message](https://github.com/aliyunmq/mq-http-samples/blob/master/nodejs/consumer.js)
### V1.0.2 Samples
[Publish Message](https://github.com/aliyunmq/mq-http-samples/tree/101-dev/nodejs/producer.js)
[Consume Message](https://github.com/aliyunmq/mq-http-samples/tree/101-dev/nodejs/consumer.js)
[Transaction Message](https://github.com/aliyunmq/mq-http-samples/tree/101-dev/nodejs/trans-producer.js)
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需要保持订阅一致