dynamodb-stateful-queue
v1.1.1
Published
This is a port of auth0/mongodb-stateful-queue that implements the same functionality on top of AWS DynamoDB.
Downloads
6
Readme
This is a port of auth0/mongodb-stateful-queue that implements the same functionality on top of AWS DynamoDB.
With the exception of the constructor, the dynamodb-stateful-queue maintains API and behavioral compatibility with mongodb-stateful-queue, so it can be used as a slip-stream replacement.
DynamoDB table
This module requires a DynamoDB table to pre-exist and be created with specific indexes. Structure is documented here.
The ./tools/create_table.sh script can be used to create a DynamoDB table with required structure in a given region:
TABLE_NAME=test-webtask-modules REGION=us-west-1 ./tools/create_table.sh
Running this script requires that aws CLI is already installed and pre-configured with credentials having enough permissions to create DynamoDB tables in the requested region.
Running tests
Tests require that a DynamoDB table is already created (see previous step). They also require that AWS credentials are configured on the machine (config files or environment variables). To run tests:
TABLE_NAME=test-webtask-modules REGION=us-west-1 npm test