Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamo-2-sqs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamo-2-sqs

Scans a DynamoDB table and puts the items into SQS for processing

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Dynamo 2 SQS

Scan DynamoDB table and insert the items into SQS. Useful for creating enqueue workers.

Note: This is not built for every use case so if you need it to fit with your particular case, please submit a PR.

Installation

npm i -S dynamo-2-sqs

Requirements

Requires Node 8.0 or greater

Simple Usage

Second argument is an object with must contain EITHER url or name key. Which correspond to the QueueUrl and QueueName.

const dynamo2Sqs = require('dynamo-2-sqs');

const queueUrl = 'foobar_fifo';
const sqsConfig = { region: 'us-east-1' };
const tableName = 'quax';
const MessageGroupId = 'quax1';
const dynamoConfig = { region: 'us-east-2' };
const options = { dynamo: { config: dynamoConfig }, sqs: { config: sqsConfig, MessageGroupId } };

const start = () => dynamo2Sqs(tableName, { url: queueUrl }, options);

Advanced Usage

Warning: Not tested

Uses my own technique which I call pipe injection. You receive 2 pipes as arguments to the function and you return an array of pipes for a pipeline to be created.

const exampleTransformStream = new stream.Transform();

options.pipeInject =(dynamoScanReadStream, sqsWriteStream) => [dynamoScanReadStream, exampleTransformStream, sqsWriteStream]

const start = () => dynamo2Sqs(tableName, { url: queueUrl }, options);

Keywords

FAQs

Package last updated on 23 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc