1.1.1 • Published 7 years ago

dynamodb-stateful-queue v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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
1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago