rocketmq
Rocket MQ SDK support Aliyun Open Notification Service Client (base on opensource project RocketMQ)
Forked from rocketmq
主要是更改了日志等级
Install
npm install rocketmq --save
Usage
consumer
'use strict'; const Consumer = Consumer;const consumer = namesrvAddr: 'localhost:9876' // for rocket mq accessKey: 'your-accesskey' // for aliyun-ons secretKey: 'your-secretkey' // for aliyun-ons onsAddr: '' // for aliyun-ons consumerGroup: 'your-consumer-group' // for aliyun-ons isBroadcast: false // default is false, that mean messages will be pushed to consumer cluster only once.; consumer; consumer;
producer
'use strict'; const Producer = Producer;const Message = Message; const producer = namesrvAddr: 'localhost:9876' // for rocket mq accessKey: 'your-accesskey' // for aliyun-ons secretKey: 'your-secretkey' // for aliyun-ons producerGroup: 'your-producer-group' // for aliyun-ons; producer;