@monmedx/monmedx-pubsub

2.1.0 • Public • Published

commons-service

const {sqsQueue} = require('pubsub-service');

#Optional sqsQueue.configUpdate({});

#Receive sqs Message config sqsQueue.start([{'auditQueue':["shipment"]}],app);

#Receive sqs Message Example app.on('sqsEvent', (eventName,event_data) => { console.log('sqsEvent :',eventName,event_data); });


const {sqsQueue} = require('commons-service');

#send sqs Message config app.on('sendSqsEvent', (topic_name, data) => { snsTopic.sendSnsMessage(topic_name,data); });

permissions Required

SNS : createTopic,listTopics,subscribe,listSubscriptionsByTopic

SQS : createQueue,getQueueAttributes,setQueueAttributes,getQueueUrl,sendmessage,receivemessage,deleteMessage

Readme

Keywords

none

Package Sidebar

Install

npm i @monmedx/monmedx-pubsub

Weekly Downloads

3

Version

2.1.0

License

ISC

Unpacked Size

17.5 kB

Total Files

8

Last publish

Collaborators

  • monmedx