sqs-consumer:在没有样板的情况下构建基于Amazon Simple Queue Service(SQS)的应用程序-源码

上传者: 42172972 | 上传时间: 2021-02-01 23:08:12 | 文件大小: 59KB | 文件类型: ZIP
平方消费 在没有样板的情况下构建基于SQS的应用程序。 只需定义一个处理SQS消息处理的异步函数即可。 安装 npm install sqs-consumer --save 用法 const { Consumer } = require ( 'sqs-consumer' ) ; const app = Consumer . create ( { queueUrl : 'https://sqs.eu-west-1.amazonaws.com/account-id/queue-name' , handleMessage : async ( message ) => { // do some work with `message` } } ) ; app . on ( 'error' , ( err ) => { console . error ( err . message ) ; } ) ; app . on ( 'processing_error' , ( err ) => { console . error ( err . message ) ; } )

文件下载

资源详情

[{"title":"( 20 个子文件 59KB ) sqs-consumer:在没有样板的情况下构建基于Amazon Simple Queue Service(SQS)的应用程序-源码","children":[{"title":"sqs-consumer-master","children":[{"title":".github","children":[{"title":"CONTRIBUTING.md <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"ISSUE_TEMPLATE","children":[{"title":"bug-report.md <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"technical-question.md <span style='color:#111;'> 405B </span>","children":null,"spread":false},{"title":"feature-request.md <span style='color:#111;'> 527B </span>","children":null,"spread":false}],"spread":true},{"title":"CODEOWNERS <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"pull_request_template.md <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"index.ts <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"errors.ts <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"bind.ts <span style='color:#111;'> 442B </span>","children":null,"spread":false},{"title":"consumer.ts <span style='color:#111;'> 12.20KB </span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 318B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 706B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"consumer.ts <span style='color:#111;'> 21.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 7.86KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 154.44KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明