ac-sqs
This tool is a wrapper for AWS SDK's SQS function. It includes handling of big SQS messages using S3.
Last updated 8 months ago by mmpro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ac-sqs 
SYNC missed versions from official npm registry.

AC SQS

This tool is a wrapper for AWS SDK's SQS function. It includes handling of big SQS messages using S3.

Usage

yarn add ac-sqs

Examples

const acsqs = require('ac-sqs')

const sqsConfig = {
  account: 'AWS ACCOUNT ID',
  accessKeys: [{
    accessKeyId: 'AWS ACCESS KEY',
    secretAccessKey: 'AWS ACCESS SECRET',
    default: true
  }],

  // optional if you want to use large messages
  bucket: 'S3 bucket for large messages',
  threshold: 250000,

  
  // Optional to init this tool with additional parameters
  lists: [
    { name: 'playerlog', prefix: 'playerlog', processingInterval: 8000 },
  ],

  
  localDevelopment: false, // if true, list will be prefixed with "local_"
  debug: false // if true, logs will be written for every SQS call
}

acsqs.init(sqsConfig)

acsqs.listQueues({
  prefix: 'someSQSlist'
}, (err, result) => {
  console.log(23, err, result)
})

ToDos

  • improve README

Links

License

MIT License Copyright © 2009-present, AdmiralCloud, Mark Poepping

Current Tags

  • 1.0.0                                ...           latest (8 months ago)

1 Versions

  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |