1.2.6 • Published 1 year ago
@barchart/aws-lambda-suppressor v1.2.6
@barchart/aws-lambda-suppressor
A public JavaScript package for tracking and suppressing duplicate invocations of AWS Lambda Functions.
Workflow
- Each Lambda invocation includes an
event
object. - Depending on the
event
source, a unique identifier can usually be extracted. - The
DynamoMessageValidator
saves these unique identifiers to DynamoDB (using a conditional writes). - Failure indicates another Lambda has already processed the same event and processing should be suppressed.
Usage
This package is typically used with a simple framework found in the @barchart/common-node-js library.
- First, instantiate a
LambdaEventValidator
and add aDynamoMessageValidator
instance. - Then, plug the
LambdaEventValidator
into yourLambdaHelper
by overriding itsgetValidator
function.
License
This software is provided under the MIT license.
1.2.6
1 year ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago